pub const fn is_power_of_two(n: u64) -> bool
Check if a number is a power of 2 - compile-time constant.
use chie_core::utils::is_power_of_two; assert!(is_power_of_two(8)); assert!(!is_power_of_two(7));