Lines Matching refs:bit_offset
114 ALWAYS_INLINE bool LoadBit(uintptr_t bit_offset) const { in LoadBit() argument
116 uint8_t byte = *ComputeBitPointer(bit_offset, &bit_mask); in LoadBit()
120 ALWAYS_INLINE void StoreBit(uintptr_t bit_offset, bool value) const { in StoreBit() argument
122 uint8_t* byte = ComputeBitPointer(bit_offset, &bit_mask); in StoreBit()
134 ALWAYS_INLINE uint32_t LoadBits(uintptr_t bit_offset, size_t length) const { in LoadBits() argument
136 DCHECK_LE(bit_offset + length, size_in_bits()); in LoadBits()
141 const uint8_t* address = begin() + bit_offset / kBitsPerByte; in LoadBits()
142 const uint32_t shift = bit_offset & (kBitsPerByte - 1); in LoadBits()
162 DCHECK_EQ((value >> i) & 1, LoadBit(bit_offset + i)); in LoadBits()
171 void StoreBits(uintptr_t bit_offset, uint32_t value, size_t length);
205 ALWAYS_INLINE uint8_t* ComputeBitPointer(uintptr_t bit_offset, uint8_t* bit_mask) const { in ComputeBitPointer() argument
206 uintptr_t bit_remainder = (bit_offset & (kBitsPerByte - 1)); in ComputeBitPointer()
208 uintptr_t byte_offset = (bit_offset >> kBitsPerByteLog2); in ComputeBitPointer()