Function rin::math::next_pow2 [−][src]
pub fn next_pow2<T>(v: T) -> T where
T: BaseNum + PartialOrd<T> + ShlAssign<T>,
Next power of two
63 -> 64 200 -> 256 …
pub fn next_pow2<T>(v: T) -> T where
T: BaseNum + PartialOrd<T> + ShlAssign<T>,
Next power of two
63 -> 64 200 -> 256 …