[][src]Function sunrise_libutils::log2_floor

pub const fn log2_floor(val: usize) -> usize

Returns the floored base 2 logarithm of the number.

Panics

Panics if val is 0.