Searched refs:bit_index (Results 1 – 3 of 3) sorted by relevance
32 inline bool Bitmap::AtomicTestAndSetBit(uintptr_t bit_index) { in AtomicTestAndSetBit() argument33 CheckValidBitIndex(bit_index); in AtomicTestAndSetBit()34 const size_t word_index = BitIndexToWordIndex(bit_index); in AtomicTestAndSetBit()35 const uintptr_t word_mask = BitIndexToMask(bit_index); in AtomicTestAndSetBit()42 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() argument52 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[all …]
58 static ALWAYS_INLINE constexpr uintptr_t BitIndexToMask(uintptr_t bit_index) { in BitIndexToMask() argument59 return static_cast<uintptr_t>(1) << (bit_index % kBitsPerBitmapWord); in BitIndexToMask()62 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit() argument63 return ModifyBit<true>(bit_index); in SetBit()66 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit() argument67 return ModifyBit<false>(bit_index); in ClearBit()70 ALWAYS_INLINE bool TestBit(size_t bit_index) const;73 ALWAYS_INLINE bool AtomicTestAndSetBit(size_t bit_index);96 ALWAYS_INLINE void CheckValidBitIndex(size_t bit_index) const { in CheckValidBitIndex() argument97 DCHECK_LT(bit_index, BitmapSize()); in CheckValidBitIndex()[all …]
463 void operator()(size_t bit_index) const { in operator ()()464 const uintptr_t start = card_bitmap_->AddrFromBitIndex(bit_index); in operator ()()473 card_bitmap_->ClearBit(bit_index); in operator ()()