| 202 | } |
| 203 | |
| 204 | size_t bitmap_popcount(struct bitmap *self) |
| 205 | { |
| 206 | size_t i, count = 0; |
| 207 | |
| 208 | for (i = 0; i < self->word_alloc; ++i) |
| 209 | count += ewah_bit_popcount64(self->words[i]); |
| 210 | |
| 211 | return count; |
| 212 | } |
| 213 | |
| 214 | size_t ewah_bitmap_popcount(struct ewah_bitmap *self) |
| 215 | { |