| 144 | } |
| 145 | |
| 146 | constexpr uint64_t GetFullMask(uint8_t numBits) |
| 147 | { |
| 148 | ASSERT_LESS_OR_EQUAL(numBits, 64, ()); |
| 149 | return numBits == 64 ? std::numeric_limits<uint64_t>::max() : (static_cast<uint64_t>(1) << numBits) - 1; |
| 150 | } |
| 151 | |
| 152 | constexpr bool IsPow2Minus1(uint64_t n) |
| 153 | { |