[−][src]Function vex::next_power_of_two
pub fn next_power_of_two(x: i32) -> i32
Gets the next power of two for a given value
Examples
use vex::next_power_of_two; let n = next_power_of_two(1); assert_eq!(n, 2);
use vex::next_power_of_two; let n = next_power_of_two(2); assert_eq!(n, 4);