const fn div_ceil_pow2(n: u32, log2: u32) -> u32
Divide by a power of two, rounding up, without a remainder-dependent branch.