MCPcopy Create free account
hub / github.com/BirolLab/abyss / SetBit

Method SetBit

FMIndex/bit_array.cc:71–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void BitArray::SetBit(uint64_t bit, uint64_t pos) {
72 if (!bit) return;
73 bit_blocks_[pos / BLOCK_BITNUM] |= (1LLU << (pos % BLOCK_BITNUM));
74}
75
76uint64_t BitArray::Rank(uint64_t bit, uint64_t pos) const {
77 if (pos > length_) return NOTFOUND;

Callers 1

assignMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected