Function rin_math::next_pow2[][src]

pub fn next_pow2<T: BaseNum + PartialOrd + ShlAssign<T>>(v: T) -> T

Next power of two

63 -> 64 200 -> 256 …