add exp and log/ln functions for f32

This commit is contained in:
Andrey Zgarbul
2018-07-13 11:10:41 +03:00
parent 2d2e8810d8
commit 505e4ce81c
4 changed files with 129 additions and 6 deletions

View File

@@ -11,6 +11,8 @@ mod powf;
mod round;
mod scalbnf;
mod sqrtf;
mod logf;
mod expf;
pub use self::fabs::fabs;
pub use self::fabsf::fabsf;
@@ -19,6 +21,8 @@ pub use self::powf::powf;
pub use self::round::round;
pub use self::scalbnf::scalbnf;
pub use self::sqrtf::sqrtf;
pub use self::logf::logf;
pub use self::expf::expf;
fn isnanf(x: f32) -> bool {
x.to_bits() & 0x7fffffff > 0x7f800000