Home
last modified time | relevance | path

Searched refs:bit_index (Results 1 – 3 of 3) sorted by relevance

/art/runtime/gc/accounting/
Dbitmap-inl.h32 inline bool Bitmap::AtomicTestAndSetBit(uintptr_t bit_index) { in AtomicTestAndSetBit() argument
33 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() 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
[all …]
Dbitmap.h58 static ALWAYS_INLINE constexpr uintptr_t BitIndexToMask(uintptr_t bit_index) { in BitIndexToMask() argument
59 return static_cast<uintptr_t>(1) << (bit_index % kBitsPerBitmapWord); in BitIndexToMask()
62 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit() argument
63 return ModifyBit<true>(bit_index); in SetBit()
66 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit() argument
67 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() argument
97 DCHECK_LT(bit_index, BitmapSize()); in CheckValidBitIndex()
[all …]
Dmod_union_table.cc463 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 ()()