Gets the index of the specified bit in the set, which is the number of marked bits that appear before the specified bit.
| 124 | // Gets the index of the specified bit in the set, which is the number of |
| 125 | // marked bits that appear before the specified bit. |
| 126 | inline uint32_t getIndexOfBit(uint32_t n) const { |
| 127 | return getIndexOfBit(value, n); |
| 128 | } |
| 129 | |
| 130 | static inline uint32_t getIndexOfBit(uint32_t value, uint32_t n) { |
| 131 | return __builtin_popcountl(value & ~(0xffffffffUL >> n)); |
nothing calls this directly
no outgoing calls
no test coverage detected