MCPcopy Create free account
hub / github.com/comaps/comaps / GetBit

Method GetBit

libs/coding/compressed_bit_vector.cpp:295–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295bool DenseCBV::GetBit(uint64_t pos) const
296{
297 uint64_t bitGroup = GetBitGroup(static_cast<size_t>(pos / kBlockSize));
298 return ((bitGroup >> (pos % kBlockSize)) & 1) > 0;
299}
300
301unique_ptr<CompressedBitVector> DenseCBV::LeaveFirstSetNBits(uint64_t n) const
302{

Callers 5

operator()Method · 0.45
operator()Method · 0.45
CheckBinaryOpFunction · 0.45
UNIT_TESTFunction · 0.45
HasBitMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 2

CheckBinaryOpFunction · 0.36
UNIT_TESTFunction · 0.36