Lines Matching refs:bit_offset
29 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_size) { in BitMemoryRegion() argument
30 bit_start_ = bit_offset % kBitsPerByte; in BitMemoryRegion()
31 const size_t start = bit_offset / kBitsPerByte; in BitMemoryRegion()
32 const size_t end = (bit_offset + bit_size + kBitsPerByte - 1) / kBitsPerByte; in BitMemoryRegion()
43 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset, size_t bit_size) const { in Subregion() argument
44 return BitMemoryRegion(region_, bit_start_ + bit_offset, bit_size); in Subregion()
49 ALWAYS_INLINE bool LoadBit(uintptr_t bit_offset) const { in LoadBit() argument
50 return region_.LoadBit(bit_offset + bit_start_); in LoadBit()
53 ALWAYS_INLINE void StoreBit(uintptr_t bit_offset, bool value) const { in StoreBit() argument
54 region_.StoreBit(bit_offset + bit_start_, value); in StoreBit()
57 ALWAYS_INLINE uint32_t LoadBits(uintptr_t bit_offset, size_t length) const { in LoadBits() argument
58 return region_.LoadBits(bit_offset + bit_start_, length); in LoadBits()
62 ALWAYS_INLINE void StoreBits(uintptr_t bit_offset, uint32_t value, size_t length) { in StoreBits() argument
63 region_.StoreBits(bit_offset + bit_start_, value, length); in StoreBits()