openvm_circuit::utils

Function next_power_of_two_or_zero

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

Return either 0 if n is zero or the next power of two of n. Used to resize the number of rows in a trace matrix.