prev_pow2

Function prev_pow2 

Source
pub(crate) fn prev_pow2(z: usize) -> usize
Expand description

Find the previous power of 2. If it’s already a power of 2, it’s unchanged. Passing zero is undefined behavior.