Skip to main content

next_power_of_two

Function next_power_of_two 

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

Smallest power of two ≥ x. Returns 1 for x == 0.