Function kernel::utilities::math::log_base_two

source ยท
pub fn log_base_two(num: u32) -> u32
Expand description

Get log base 2 of a number.

Note: this is the floor of the result. Also, an input of 0 results in an output of 0.