Lines Matching refs:bit_index
56 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()
110 ALWAYS_INLINE bool ModifyBit(uintptr_t bit_index);
145 ALWAYS_INLINE uintptr_t AddrFromBitIndex(size_t bit_index) const { in AddrFromBitIndex() argument
146 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; in AddrFromBitIndex()
147 DCHECK_EQ(BitIndexFromAddr(addr), bit_index); in AddrFromBitIndex()