MCPcopy Create free account
hub / github.com/apache/impala / BitmapMergeOr

Function BitmapMergeOr

be/src/kudu/util/bitmap.h:61–66  ·  view source on GitHub ↗

Merge the two bitmaps using bitwise or. Both bitmaps should have at least n_bits valid bits.

Source from the content-addressed store, hash-verified

59// Merge the two bitmaps using bitwise or. Both bitmaps should have at least
60// n_bits valid bits.
61inline void BitmapMergeOr(uint8_t *dst, const uint8_t *src, size_t n_bits) {
62 size_t n_bytes = BitmapSize(n_bits);
63 for (size_t i = 0; i < n_bytes; i++) {
64 *dst++ |= *src++;
65 }
66}
67
68// Set bits from offset to (offset + num_bits) to the specified value
69void BitmapChangeBits(uint8_t *bitmap, size_t offset, size_t num_bits, bool value);

Callers

nothing calls this directly

Calls 1

BitmapSizeFunction · 0.85

Tested by

no test coverage detected