exr::math

Function floor_log_2

Source
pub(crate) fn floor_log_2(number: u32) -> u32
Expand description

Computes floor(log(x)/log(2)). Returns 0 where argument is 0.