Lines Matching refs:bit_index
32 inline bool Bitmap::AtomicTestAndSetBit(uintptr_t bit_index) {
33 CheckValidBitIndex(bit_index);
34 const size_t word_index = BitIndexToWordIndex(bit_index);
35 const uintptr_t word_mask = BitIndexToMask(bit_index);
42 DCHECK(TestBit(bit_index));
47 DCHECK(TestBit(bit_index));
51 inline bool Bitmap::TestBit(uintptr_t bit_index) const {
52 CheckValidBitIndex(bit_index);
53 return (bitmap_begin_[BitIndexToWordIndex(bit_index)] & BitIndexToMask(bit_index)) != 0;
133 inline bool Bitmap::ModifyBit(uintptr_t bit_index) {
134 CheckValidBitIndex(bit_index);
135 const size_t word_index = BitIndexToWordIndex(bit_index);
136 const uintptr_t word_mask = BitIndexToMask(bit_index);
144 DCHECK_EQ(TestBit(bit_index), kSetBit);