Lines Matching refs:uintptr_t
33 inline bool Bitmap::AtomicTestAndSetBit(uintptr_t bit_index) { in AtomicTestAndSetBit()
36 const uintptr_t word_mask = BitIndexToMask(bit_index); in AtomicTestAndSetBit()
37 auto* atomic_entry = reinterpret_cast<Atomic<uintptr_t>*>(&bitmap_begin_[word_index]); in AtomicTestAndSetBit()
38 uintptr_t old_word; in AtomicTestAndSetBit()
51 inline bool Bitmap::TestBit(uintptr_t bit_index) const { in TestBit()
57 inline void Bitmap::VisitSetBits(uintptr_t bit_start, uintptr_t bit_end, const Visitor& visitor) in VisitSetBits()
61 const uintptr_t index_start = BitIndexToWordIndex(bit_start); in VisitSetBits()
62 const uintptr_t index_end = BitIndexToWordIndex(bit_end); in VisitSetBits()
75 uintptr_t left_edge = bitmap_begin_[index_start]; in VisitSetBits()
77 left_edge &= ~((static_cast<uintptr_t>(1) << (bit_start % kBitsPerBitmapWord)) - 1); in VisitSetBits()
80 uintptr_t right_edge; in VisitSetBits()
87 const uintptr_t ptr_base = WordIndexToBitIndex(index_start); in VisitSetBits()
91 left_edge ^= static_cast<uintptr_t>(1) << shift; in VisitSetBits()
97 uintptr_t w = bitmap_begin_[i]; in VisitSetBits()
99 const uintptr_t ptr_base = WordIndexToBitIndex(i); in VisitSetBits()
103 w ^= static_cast<uintptr_t>(1) << shift; in VisitSetBits()
121 right_edge &= ((static_cast<uintptr_t>(1) << (bit_end % kBitsPerBitmapWord)) - 1); in VisitSetBits()
123 const uintptr_t ptr_base = WordIndexToBitIndex(index_end); in VisitSetBits()
127 right_edge ^= (static_cast<uintptr_t>(1)) << shift; in VisitSetBits()
133 inline bool Bitmap::ModifyBit(uintptr_t bit_index) { in ModifyBit()
136 const uintptr_t word_mask = BitIndexToMask(bit_index); in ModifyBit()
137 uintptr_t* address = &bitmap_begin_[word_index]; in ModifyBit()
138 uintptr_t old_word = *address; in ModifyBit()