Function rs_pbrt::core::pbrt::is_power_of_2

source ·
pub fn is_power_of_2<T>(v: T) -> boolwhere
    T: Zero + One + Copy + PartialOrd + BitAnd<T, Output = T> + Sub<T, Output = T>,
Expand description

Determine if a given integer is an exact power of 2.