exr::math

Function ceil_log_2

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

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