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