Function reed_solomon_novelpoly::util::is_power_of_2
source · 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.
pub const fn is_power_of_2(x: usize) -> bool
Check if x is a power of 2.
Zero is by definition not a power of 2.