halo2_base::utils

Function log2_ceil

Source
pub fn log2_ceil(x: u64) -> usize
Expand description

Returns the ceiling of the base 2 logarithm of x.

log2_ceil(0) returns 0.