pub fn cos_lookup(x: u32) -> f32 {
    let idx = (x >> COS_FRAC_BITS) as usize;
    let frac = (x & COS_FRAC_MASK) as f32;
    COS_LUT_Y[idx] + frac * COS_LUT_DY[idx]
}
/// Returns the cosine of x (32 bit unsigned phase value).
Returns the cosine of x (32 bit unsigned phase value).
Returns the cosine of x ( 32 bit unsigned phase value ) .
pub fn cos_lookup(x: u32) -> f32 {
    let idx = (x >> COS_FRAC_BITS) as usize;
    let frac = (x & COS_FRAC_MASK) as f32;
    COS_LUT_Y[idx] + frac * COS_LUT_DY[idx]
}
pub fn cos_lookup ( x : u32 ) -> f32 { let idx = ( x >> COS_FRAC_BITS ) as usize ; let frac = ( x & COS_FRAC_MASK ) as f32 ; COS_LUT_Y [ idx ] + frac * COS_LUT_DY [ idx ] }
Returns the cosine of x (32 bit unsigned phase value).
Returns the cosine of x ( 32 bit unsigned phase value ) .
x
u32
x
u32