Searched refs:bit_index (Results 1 – 5 of 5) 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 …]
57 static ALWAYS_INLINE constexpr uintptr_t BitIndexToMask(uintptr_t bit_index) { in BitIndexToMask() argument58 return static_cast<uintptr_t>(1) << (bit_index % kBitsPerBitmapWord); in BitIndexToMask()61 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit() argument62 return ModifyBit<true>(bit_index); in SetBit()65 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit() argument66 return ModifyBit<false>(bit_index); in ClearBit()69 ALWAYS_INLINE bool TestBit(size_t bit_index) const;72 ALWAYS_INLINE bool AtomicTestAndSetBit(size_t bit_index);95 ALWAYS_INLINE void CheckValidBitIndex(size_t bit_index) const { in CheckValidBitIndex() argument96 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()
432 for (size_t bit_index = 0; bit_index < stack_mask_bits; ++bit_index) { in FillInCodeInfo() local433 stack_mask.StoreBit(bit_index, source.LoadBit(bit_index)); in FillInCodeInfo()