Lines Matching refs:shift
85 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in LoadBit() local
86 return ((data_[index] >> shift) & 1) != 0; in LoadBit()
92 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in StoreBit() local
93 data_[index] &= ~(1 << shift); // Clear bit. in StoreBit()
94 data_[index] |= (value ? 1 : 0) << shift; // Set bit. in StoreBit()
117 size_t shift = (bit_start_ + bit_offset) % width; in LoadBits() local
118 Result value = data[index] >> shift; in LoadBits()
121 Result extra = data[index + (shift + (bit_length - 1)) / width]; in LoadBits()
128 return (value | (extra << ((width - shift) & (width - 1)))) & ~clear; in LoadBits()
145 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in StoreBits() local
146 data_[index] &= ~(mask << shift); // Clear bits. in StoreBits()
147 data_[index] |= (value << shift); // Set bits. in StoreBits()
148 size_t finished_bits = kBitsPerByte - shift; in StoreBits()