Lines Matching refs:f32
35 pub fn powf(x: f32, y: f32) -> f32 {
36 const BP: [f32; 2] = [1.0, 1.5];
37 const DP_H: [f32; 2] = [0.0, 5.84960938e-01]; /* 0x3f15c000 */
38 const DP_L: [f32; 2] = [0.0, 1.56322085e-06]; /* 0x35d1cfdc */
39 const TWO24: f32 = 16777216.0; /* 0x4b800000 */
40 const HUGE: f32 = 1.0e30;
41 const TINY: f32 = 1.0e-30;
42 const L1: f32 = 6.0000002384e-01; /* 0x3f19999a */
43 const L2: f32 = 4.2857143283e-01; /* 0x3edb6db7 */
44 const L3: f32 = 3.3333334327e-01; /* 0x3eaaaaab */
45 const L4: f32 = 2.7272811532e-01; /* 0x3e8ba305 */
46 const L5: f32 = 2.3066075146e-01; /* 0x3e6c3255 */
47 const L6: f32 = 2.0697501302e-01; /* 0x3e53f142 */
48 const P1: f32 = 1.6666667163e-01; /* 0x3e2aaaab */
49 const P2: f32 = -2.7777778450e-03; /* 0xbb360b61 */
50 const P3: f32 = 6.6137559770e-05; /* 0x388ab355 */
51 const P4: f32 = -1.6533901999e-06; /* 0xb5ddea0e */
52 const P5: f32 = 4.1381369442e-08; /* 0x3331bb4c */
53 const LG2: f32 = 6.9314718246e-01; /* 0x3f317218 */
54 const LG2_H: f32 = 6.93145752e-01; /* 0x3f317200 */
55 const LG2_L: f32 = 1.42860654e-06; /* 0x35bfbe8c */
56 const OVT: f32 = 4.2995665694e-08; /* -(128-log2(ovfl+.5ulp)) */
57 const CP: f32 = 9.6179670095e-01; /* 0x3f76384f =2/(3ln2) */
58 const CP_H: f32 = 9.6191406250e-01; /* 0x3f764000 =12b cp */
59 const CP_L: f32 = -1.1736857402e-04; /* 0xb8f623c6 =tail of cp_h */
60 const IVLN2: f32 = 1.4426950216e+00;
61 const IVLN2_H: f32 = 1.4426879883e+00;
62 const IVLN2_L: f32 = 7.0526075433e-06;
64 let mut z: f32;
65 let mut ax: f32;
66 let z_h: f32;
67 let z_l: f32;
68 let mut p_h: f32;
69 let mut p_l: f32;
70 let y1: f32;
71 let mut t1: f32;
72 let t2: f32;
73 let mut r: f32;
74 let s: f32;
75 let mut sn: f32;
76 let mut t: f32;
77 let mut u: f32;
78 let mut v: f32;
79 let mut w: f32;
235 t1 = f32::from_bits(is as u32 & 0xfffff000);
238 let mut s2: f32;
239 let mut s_h: f32;
240 let s_l: f32;
241 let mut t_h: f32;
242 let mut t_l: f32;
266 ax = f32::from_bits(ix as u32);
274 s_h = f32::from_bits(is as u32 & 0xfffff000);
277 t_h = f32::from_bits(is as u32 + 0x00400000 + ((k as u32) << 21));
287 t_h = f32::from_bits(is as u32 & 0xfffff000);
295 p_h = f32::from_bits(is as u32 & 0xfffff000);
300 t = n as f32;
303 t1 = f32::from_bits(is as u32 & 0xfffff000);
309 y1 = f32::from_bits(is as u32 & 0xfffff000);
343 t = f32::from_bits(n as u32 & !(0x007fffff >> k));
352 t = f32::from_bits(is as u32 & 0xffff8000);
367 z = f32::from_bits(j as u32);
387 pub fn sqrtf(x: f32) -> f32 {
409 const TINY: f32 = 1.0e-30;
411 let mut z: f32;
489 f32::from_bits(ix as u32)
493 /// Absolute value (magnitude) (f32)
496 pub fn fabsf(x: f32) -> f32 {
497 f32::from_bits(x.to_bits() & 0x7fffffff)
500 pub fn scalbnf(mut x: f32, mut n: i32) -> f32 {
501 let x1p127 = f32::from_bits(0x7f000000); // 0x1p127f === 2 ^ 127
502 let x1p_126 = f32::from_bits(0x800000); // 0x1p-126f === 2 ^ -126
503 let x1p24 = f32::from_bits(0x4b800000); // 0x1p24f === 2 ^ 24
526 x * f32::from_bits(((0x7f + n) as u32) << 23)