Skip to main content

div_ceil_pow2

Function div_ceil_pow2 

Source
const fn div_ceil_pow2(n: u32, log2: u32) -> u32
Expand description

Divide by a power of two, rounding up, without a remainder-dependent branch.