Function log2fix::log2fix[][src]

pub fn log2fix(x: u32, precision: u8) -> i32
Expand description

This implementation is based on Clay. S. Turner’s fast binary logarithm algorithm. C. S. Turner, “A Fast Binary Logarithm Algorithm”, IEEE Signal Processing Mag., pp. 124,140, Sep. 2010.