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

Function SetBit

cpp/src/arrow/util/bit_util.h:219–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static inline void SetBit(uint8_t* bits, int64_t i) { bits[i / 8] |= kBitmask[i % 8]; }
220
221static inline void SetBitTo(uint8_t* bits, int64_t i, bool bit_is_set) {
222 // https://graphics.stanford.edu/~seander/bithacks.html

Callers 15

ValuesToBitmapFunction · 0.85
MaskToBitmapFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.85
ProbeSingleBatchMethod · 0.85
BloomFilterMasksMethod · 0.85
UpdateHasMatchForKeysMethod · 0.85
GetBitmapFromVectorFunction · 0.85
GenerateBitmapMethod · 0.85
GenerateOffsetsFunction · 0.85
OffsetsFromLengthsArrayFunction · 0.85
FillBitsFromBytesFunction · 0.85

Calls

no outgoing calls

Tested by 3

SetListViewFunction · 0.68
MakeListArrayFunction · 0.68
TEST_FFunction · 0.68