Home
last modified time | relevance | path

Searched refs:kVarintBits (Results 1 – 2 of 2) sorted by relevance

/art/libartbase/base/
Dbit_memory_region.h217 constexpr uint32_t kVarintBits = 4; // Minimum number of bits used for varint. variable
256 uint32_t x = ReadBits(kVarintBits); in ReadVarint()
265 static_assert(N * kVarintBits <= sizeof(uint64_t) * kBitsPerByte, "N too big"); in ReadInterleavedVarints()
268 uint64_t data = ReadBits<uint64_t>(N * kVarintBits); in ReadInterleavedVarints()
270 values[i] = BitFieldExtract(data, i * kVarintBits, kVarintBits); in ReadInterleavedVarints()
330 WriteBits(kVarintMax + BitsToBytesRoundUp(MinimumBitsToStore(value)), kVarintBits); in WriteInterleavedVarints()
332 WriteBits(value, kVarintBits); in WriteInterleavedVarints()
Dbit_memory_region_test.cc46 uint32_t upper_bound = RoundUp(MinimumBitsToStore(value), kBitsPerByte) + kVarintBits; in TEST()