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