MCPcopy Create free account
hub / github.com/apache/arrow / AlignedBitmapOp

Function AlignedBitmapOp

cpp/src/arrow/util/bitmap_ops.cc:443–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441
442template <typename Op>
443void 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
459template <typename Op>
460void UnalignedBitmapOp(const uint8_t* left, int64_t left_offset, const uint8_t* right,

Callers

nothing calls this directly

Calls 1

BytesForBitsFunction · 0.85

Tested by

no test coverage detected