| 217 | */ |
| 218 | template <typename T> |
| 219 | Y_CONST_FUNCTION constexpr bool IsPowerOf2(T v) noexcept { |
| 220 | return v > 0 && (v & (v - 1)) == 0; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Returns the number of leading 0-bits in `value`, starting at the most significant bit position. |
no outgoing calls
no test coverage detected