Lines Matching refs:bit_index
57 static ALWAYS_INLINE constexpr uintptr_t BitIndexToMask(uintptr_t bit_index) { in BitIndexToMask() argument
58 return static_cast<uintptr_t>(1) << (bit_index % kBitsPerBitmapWord); in BitIndexToMask()
61 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit() argument
62 return ModifyBit<true>(bit_index); in SetBit()
65 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit() argument
66 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() argument
96 DCHECK_LT(bit_index, BitmapSize()); in CheckValidBitIndex()
111 ALWAYS_INLINE bool ModifyBit(uintptr_t bit_index);
146 ALWAYS_INLINE uintptr_t AddrFromBitIndex(size_t bit_index) const { in AddrFromBitIndex() argument
147 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; in AddrFromBitIndex()
148 DCHECK_EQ(BitIndexFromAddr(addr), bit_index); in AddrFromBitIndex()