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