| 225 | */ |
| 226 | template <typename T> |
| 227 | static inline unsigned GetValueBitCount(T value) noexcept { |
| 228 | Y_ASSERT(value > 0); |
| 229 | using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type; |
| 230 | return ::NBitOps::NPrivate::GetValueBitCountImpl(static_cast<TCvt>(value)); |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Returns the number of trailing 0-bits in `value`, starting at the least significant bit position |
no test coverage detected