7 constexpr
inline uintmax_t
log2(uintmax_t n) noexcept
11 if (n >> 32) { r += 32U; n >>= 32U; }
12 if (n >> 16) { r += 16U; n >>= 16U; }
13 if (n >> 8) { r += 8U; n >>= 8U; }
14 if (n >> 4) { r += 4U; n >>= 4U; }
15 if (n >> 2) { r += 2U; n >>= 2U; }
16 if (n >> 1) { r += 1U; n >>= 1U; }
Definition: fallback_fwd.h:23
constexpr uintmax_t log2(uintmax_t n) noexcept
Definition: bits.h:7