Get number of bits set. 8< */
| 179 | |
| 180 | /* Get number of bits set. 8< */ |
| 181 | static inline uint32_t |
| 182 | bitcnt(uint32_t v) |
| 183 | { |
| 184 | uint32_t n; |
| 185 | |
| 186 | for (n = 0; v != 0; v &= v - 1, n++) |
| 187 | ; |
| 188 | |
| 189 | return n; |
| 190 | } |
| 191 | /* >8 End of getting number of bits set. */ |
| 192 | |
| 193 | /** |