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

Function BitmapChange

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

Switch the given bit to the specified value.

Source from the content-addressed store, hash-verified

43
44// Switch the given bit to the specified value.
45inline void BitmapChange(uint8_t *bitmap, size_t idx, bool value) {
46 bitmap[idx >> 3] = (bitmap[idx >> 3] & ~(1 << (idx & 7))) | ((!!value) << (idx & 7));
47}
48
49// Clear the given bit.
50inline void BitmapClear(uint8_t *bitmap, size_t idx) {

Callers 3

RandomBitmapMethod · 0.85
TESTFunction · 0.85
BitmapCopyFunction · 0.85

Calls

no outgoing calls

Tested by 2

RandomBitmapMethod · 0.68
TESTFunction · 0.68