Searched refs:bit_index (Results 1 – 4 of 4) sorted by relevance
33 inline bool Bitmap::AtomicTestAndSetBit(uintptr_t bit_index) { in AtomicTestAndSetBit() argument34 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() 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 …]
56 static ALWAYS_INLINE constexpr uintptr_t BitIndexToMask(uintptr_t bit_index) { in BitIndexToMask() argument57 return static_cast<uintptr_t>(1) << (bit_index % kBitsPerBitmapWord); in BitIndexToMask()60 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit() argument61 return ModifyBit<true>(bit_index); in SetBit()64 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit() argument65 return ModifyBit<false>(bit_index); in ClearBit()68 ALWAYS_INLINE bool TestBit(size_t bit_index) const;71 ALWAYS_INLINE bool AtomicTestAndSetBit(size_t bit_index);94 ALWAYS_INLINE void CheckValidBitIndex(size_t bit_index) const { in CheckValidBitIndex() argument95 DCHECK_LT(bit_index, BitmapSize()); in CheckValidBitIndex()[all …]
509 void operator()(size_t bit_index) const { in operator ()()510 const uintptr_t start = card_bitmap_->AddrFromBitIndex(bit_index); in operator ()()519 card_bitmap_->ClearBit(bit_index); in operator ()()559 [this, callback, arg](size_t bit_index) { in VisitObjects() argument560 const uintptr_t start = card_bitmap_->AddrFromBitIndex(bit_index); in VisitObjects()
40 const size_t bit_index = index % kElementsPerIndex; in GetOffset() local47 if ((bit_mask & (1 << bit_index)) == 0) { in GetOffset()53 size_t count = POPCOUNT(static_cast<uintptr_t>(bit_mask) << (kBitsPerIntPtrT - 1 - bit_index)); in GetOffset()