pub(crate) fn prev_pow2(z: usize) -> usize
Find the previous power of 2. If it’s already a power of 2, it’s unchanged. Passing zero is undefined behavior.