[][src]Function bonsai::next_power_of_two

pub const fn next_power_of_two(n: u64) -> u64

Returns the next power of two for n using bit twiddling.

Source: https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2