Searched refs:bit_offset (Results 1 – 4 of 4) sorted by relevance
/art/libartbase/base/ |
D | bit_memory_region.h | 49 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_length) in BitMemoryRegion() argument 51 *this = Subregion(bit_offset, bit_length); in BitMemoryRegion() 69 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset, size_t bit_length) const { in Subregion() argument 70 DCHECK_LE(bit_offset, bit_size_); in Subregion() 71 DCHECK_LE(bit_length, bit_size_ - bit_offset); in Subregion() 73 result.bit_start_ += bit_offset; in Subregion() 78 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset) const { in Subregion() argument 79 DCHECK_LE(bit_offset, bit_size_); in Subregion() 81 result.bit_start_ += bit_offset; in Subregion() 82 result.bit_size_ -= bit_offset; in Subregion() [all …]
|
D | bit_memory_region_test.cc | 56 for (size_t bit_offset = 0; bit_offset < 2 * sizeof(uint32_t) * kBitsPerByte; ++bit_offset) { in TEST() local 61 BitMemoryRegion bmr1(MemoryRegion(&data, sizeof(data)), bit_offset, 1); in TEST() 64 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST() 68 bmr2.StoreBit(bit_offset, value); in TEST() 69 EXPECT_EQ(bmr2.LoadBit(bit_offset), value); in TEST() 70 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST() 78 for (size_t bit_offset = 0; bit_offset < 3 * sizeof(uint32_t) * kBitsPerByte; ++bit_offset) { in TEST() local 85 BitMemoryRegion bmr1(MemoryRegion(&data, sizeof(data)), bit_offset, bit_length); in TEST() 88 CheckBits(data, sizeof(data), initial_value, bit_offset, bit_length, value); in TEST() 92 bmr2.StoreBits(bit_offset, value, bit_length); in TEST() [all …]
|
D | memory_region.h | 144 ALWAYS_INLINE uint8_t* ComputeBitPointer(uintptr_t bit_offset, uint8_t* bit_mask) const { in ComputeBitPointer() argument 145 uintptr_t bit_remainder = (bit_offset & (kBitsPerByte - 1)); in ComputeBitPointer() 147 uintptr_t byte_offset = (bit_offset >> kBitsPerByteLog2); in ComputeBitPointer()
|
/art/runtime/ |
D | stack_map.cc | 39 ssize_t bit_offset = reader.NumberOfReadBits() - reader.ReadVarint(); in DecodeTable() local 40 BitMemoryReader reader2(reader.data(), bit_offset); // The offset is negative. in DecodeTable() 81 size_t bit_offset = writer_.NumberOfWrittenBits(); in Dedupe() local 82 writer_.WriteVarint(bit_offset - it.first->second); in Dedupe() 193 size_t bit_offset = reader.NumberOfReadBits(); in CollectSizeStats() local 196 codeinfo_stats->Child("DedupeOffset")->AddBits(reader.NumberOfReadBits() - bit_offset); in CollectSizeStats() 199 table_stats->AddBits(reader.NumberOfReadBits() - bit_offset); in CollectSizeStats()
|