binius_utils::checked_arithmetics

Function checked_log_2

source
pub const fn checked_log_2(val: usize) -> usize
Expand description

log2 implementation that fails when val is not a power of 2.