| 441 | |
| 442 | template <typename Op> |
| 443 | void AlignedBitmapOp(const uint8_t* left, int64_t left_offset, const uint8_t* right, |
| 444 | int64_t right_offset, uint8_t* out, int64_t out_offset, |
| 445 | int64_t length) { |
| 446 | constexpr auto op = Op{}; |
| 447 | DCHECK_EQ(left_offset % 8, right_offset % 8); |
| 448 | DCHECK_EQ(left_offset % 8, out_offset % 8); |
| 449 | |
| 450 | const int64_t nbytes = bit_util::BytesForBits(length + left_offset % 8); |
| 451 | left += left_offset / 8; |
| 452 | right += right_offset / 8; |
| 453 | out += out_offset / 8; |
| 454 | for (int64_t i = 0; i < nbytes; ++i) { |
| 455 | out[i] = op(left[i], right[i]); |
| 456 | } |
| 457 | } |
| 458 | |
| 459 | template <typename Op> |
| 460 | void UnalignedBitmapOp(const uint8_t* left, int64_t left_offset, const uint8_t* right, |
nothing calls this directly
no test coverage detected