add floor, scalbn; fixes in expf, scalbnf

This commit is contained in:
Andrey Zgarbul
2018-07-13 21:02:11 +03:00
parent 505e4ce81c
commit 7e419befa1
7 changed files with 94 additions and 32 deletions

View File

@@ -8,7 +8,7 @@ const LG4 : f32 = 0.24279078841; /* 0xf89e26.0p-26 */
#[inline]
pub fn logf(mut x: f32) -> f32 {
let x1p25 = f32::from_bits(0x4c000000); // 0x1p24f === 2 ^ 25
let x1p25 = f32::from_bits(0x4c000000); // 0x1p25f === 2 ^ 25
let mut ix = x.to_bits();
let mut k = 0i32;