pub fn pow2(x: f32) -> f32 {
    if x == 0.0 {
        return 1.0;
    }
    let mut xi = f32::trunc(x) as i32;
    let mut xf = x - (xi as f32);
    if xf < 0.0 {
        xi -= 1;
        xf += 1.0;
    }
    pow2_int(xi) * pow2_frac(xf)
}
/// Returns 2 to the x.
Returns 2 to the x.
Returns 2 to the x .
pub fn pow2(x: f32) -> f32 {
    if x == 0.0 {
        return 1.0;
    }
    let mut xi = f32::trunc(x) as i32;
    let mut xf = x - (xi as f32);
    if xf < 0.0 {
        xi -= 1;
        xf += 1.0;
    }
    pow2_int(xi) * pow2_frac(xf)
}
pub fn pow2 ( x : f32 ) -> f32 { if x == 0.0 { return 1.0 ; } let mut xi = f32 :: trunc ( x ) as i32 ; let mut xf = x - ( xi as f32 ) ; if xf < 0.0 { xi -= 1 ; xf += 1.0 ; } pow2_int ( xi ) * pow2_frac ( xf ) }
Returns 2 to the x.
Returns 2 to the x .
x
f32
x
f32