Function gkfs::utils::arithmetic::is_power_of_2

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 if n is a power of 2; false otherwise.