pub const fn is_power_of_2(x: usize) -> bool
Expand description

Check if x is a power of 2.

Zero is by definition not a power of 2.