Function hydra_dx_math::transcendental::log2[][src]

pub fn log2<S, D>(operand: S) -> Result<(D, bool), ()> where
    S: FixedUnsigned,
    D: FixedUnsigned + From<S>,
    D::Bits: Copy + ToFixed + AddAssign + BitOrAssign + ShlAssign
Expand description

base 2 logarithm

Returns tuple(D,bool) where bool indicates whether D is negative. This happens when operand is < 1.