Home | History | Annotate | Download | only in runtime

Lines Matching refs:bit_offset

113   ALWAYS_INLINE bool LoadBit(uintptr_t bit_offset) const {
115 uint8_t byte = *ComputeBitPointer(bit_offset, &bit_mask);
119 ALWAYS_INLINE void StoreBit(uintptr_t bit_offset, bool value) const {
121 uint8_t* byte = ComputeBitPointer(bit_offset, &bit_mask);
129 // Load `length` bits from the region starting at bit offset `bit_offset`.
133 ALWAYS_INLINE uint32_t LoadBits(uintptr_t bit_offset, size_t length) const {
135 DCHECK_LE(bit_offset + length, size_in_bits());
140 const uint8_t* address = begin() + bit_offset / kBitsPerByte;
141 const uint32_t shift = bit_offset & (kBitsPerByte - 1);
161 DCHECK_EQ((value >> i) & 1, LoadBit(bit_offset + i));
167 // `bit_offset`. The bit at the smallest offset is the least significant
170 void StoreBits(uintptr_t bit_offset, uint32_t value, size_t length);
204 ALWAYS_INLINE uint8_t* ComputeBitPointer(uintptr_t bit_offset, uint8_t* bit_mask) const {
205 uintptr_t bit_remainder = (bit_offset & (kBitsPerByte - 1));
207 uintptr_t byte_offset = (bit_offset >> kBitsPerByteLog2);