implement roundf

This commit is contained in:
Joseph Ryan
2018-07-13 20:46:09 -05:00
parent 2d2e8810d8
commit bc94c70687
4 changed files with 40 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
macro_rules! force_eval {
($e:expr) => {
unsafe { ::core::ptr::read_volatile(&$e); }
}
unsafe {
::core::ptr::read_volatile(&$e);
}
};
}
mod fabs;
@@ -9,6 +11,7 @@ mod fabsf;
mod fmodf;
mod powf;
mod round;
mod roundf;
mod scalbnf;
mod sqrtf;
@@ -17,6 +20,7 @@ pub use self::fabsf::fabsf;
pub use self::fmodf::fmodf;
pub use self::powf::powf;
pub use self::round::round;
pub use self::roundf::roundf;
pub use self::scalbnf::scalbnf;
pub use self::sqrtf::sqrtf;