pub fn log2<S, D>(operand: S) -> Result<(D, bool), ()>where
    S: FixedUnsigned,
    D: FixedUnsigned + From<S> + One,
    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.