| 59 | |
| 60 | #if defined(__GNUC__) |
| 61 | inline unsigned GetValueBitCountImpl(unsigned int value) noexcept { |
| 62 | Y_ASSERT(value); // because __builtin_clz* have undefined result for zero. |
| 63 | return std::numeric_limits<unsigned int>::digits - __builtin_clz(value); |
| 64 | } |
| 65 | |
| 66 | inline unsigned GetValueBitCountImpl(unsigned long value) noexcept { |
| 67 | Y_ASSERT(value); // because __builtin_clz* have undefined result for zero. |
no test coverage detected