Home
last modified time | relevance | path

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

/art/runtime/gc/accounting/
Dbitmap-inl.h33 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
[all …]
Dbitmap.h56 static ALWAYS_INLINE constexpr uintptr_t BitIndexToMask(uintptr_t bit_index) { in BitIndexToMask() argument
57 return static_cast<uintptr_t>(1) << (bit_index % kBitsPerBitmapWord); in BitIndexToMask()
60 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit() argument
61 return ModifyBit<true>(bit_index); in SetBit()
64 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit() argument
65 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() argument
95 DCHECK_LT(bit_index, BitmapSize()); in CheckValidBitIndex()
[all …]
Dmod_union_table.cc509 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() argument
560 const uintptr_t start = card_bitmap_->AddrFromBitIndex(bit_index); in VisitObjects()
/art/libdexfile/dex/
Dcompact_offset_table.cc40 const size_t bit_index = index % kElementsPerIndex; in GetOffset() local
47 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()