fpmath 0.1.1

A floating point math library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::{F32Like, LikeF32};
use crate::double::SemiDouble;

// Generated with `./run-generator.sh f32::reduce_half_mul_pi::consts`
const PI_HI: u32 = 0x40490000; // 3.140625e0
const PI_LO: u32 = 0x3A7DAA22; // 9.676536e-4

impl<F: F32Like> crate::generic::ReduceHalfMulPi<LikeF32> for F {
    #[inline]
    fn pi_ex() -> SemiDouble<Self> {
        SemiDouble::with_parts(Self::from_raw(PI_HI), Self::from_raw(PI_LO))
    }
}