ceil_log2

Function ceil_log2 

Source
pub fn ceil_log2(n: usize) -> usize
Expand description

Calculates the ceiling of the base-2 logarithm of a number.

§Arguments

  • n - The number to calculate the ceiling log2 for.

§Returns

  • The smallest integer greater than or equal to log2(n).