I'm trying to round up to next power of two (for fun).
Which is 1 << (u32::BITS - x.leading_zeros() - 1); for a u32 x.
But I'd rather not write down the type.
I'm trying to round up to next power of two (for fun).
Which is 1 << (u32::BITS - x.leading_zeros() - 1); for a u32 x.
But I'd rather not write down the type.