| 92 | } |
| 93 | |
| 94 | int64_t CountAndSetBits(const uint8_t* left_bitmap, int64_t left_offset, |
| 95 | const uint8_t* right_bitmap, int64_t right_offset, |
| 96 | int64_t length) { |
| 97 | BinaryBitBlockCounter bit_counter(left_bitmap, left_offset, right_bitmap, right_offset, |
| 98 | length); |
| 99 | int64_t count = 0; |
| 100 | while (true) { |
| 101 | BitBlockCount block = bit_counter.NextAndWord(); |
| 102 | if (block.length == 0) { |
| 103 | break; |
| 104 | } |
| 105 | count += block.popcount; |
| 106 | } |
| 107 | return count; |
| 108 | } |
| 109 | |
| 110 | namespace { |
| 111 |
no outgoing calls
no test coverage detected