Lines Matching refs:kBitsPerByte
43 bit_start_ = bit_start + kBitsPerByte * (data - data_); in BitMemoryRegion()
57 DCHECK_ALIGNED(bit_start_, kBitsPerByte); in data()
58 return data_ + bit_start_ / kBitsPerByte; in data()
90 size_t index = (bit_start_ + bit_offset) / kBitsPerByte; in LoadBit()
91 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in LoadBit()
97 size_t index = (bit_start_ + bit_offset) / kBitsPerByte; in StoreBit()
98 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in StoreBit()
150 size_t index = (bit_start_ + bit_offset) / kBitsPerByte; in StoreBits()
151 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in StoreBits()
154 size_t finished_bits = kBitsPerByte - shift; in StoreBits()
155 for (int i = 1; finished_bits < bit_length; i++, finished_bits += kBitsPerByte) { in StoreBits()
257 return (x <= kVarintMax) ? x : ReadBits((x - kVarintMax) * kBitsPerByte); in ReadVarint()
265 static_assert(N * kVarintBits <= sizeof(uint64_t) * kBitsPerByte, "N too big"); in ReadInterleavedVarints()
275 values[i] = ReadBits((values[i] - kVarintMax) * kBitsPerByte); in ReadInterleavedVarints()
338 WriteBits(value, BitsToBytesRoundUp(MinimumBitsToStore(value)) * kBitsPerByte); in WriteInterleavedVarints()
349 bit_offset_ += RoundUp(end, kBitsPerByte) - end; in ByteAlign()