common: bit_util: Add IsPow2 helper function
Makes use of std::has_single_bit() to check whether the value is a power of 2.
Loading
Please register or sign in to comment
Makes use of std::has_single_bit() to check whether the value is a power of 2.