Function gkfs::utils::arithmetic::is_power_of_2
Defined in File arithmetic.hpp
Function Documentation
-
constexpr bool gkfs::utils::arithmetic::is_power_of_2(uint64_t n)
Check whether integer
n
is a power of 2.- Parameters
n – [in] the number to check.
- Returns
true
ifn
is a power of 2;false
otherwise.