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