Searched refs:bit_offset (Results 1 – 5 of 5) 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 | bit_struct.h | 273 #define BITSTRUCT_FIELD(type, bit_offset, bit_width) \ argument 274 BitStructField<type, (bit_offset), (bit_width), StorageType> 275 #define BITSTRUCT_INT(bit_offset, bit_width) \ argument 276 BitStructInt<(bit_offset), (bit_width), StorageType> 277 #define BITSTRUCT_UINT(bit_offset, bit_width) \ argument 278 BitStructUint<(bit_offset), (bit_width), StorageType>
|
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 | 42 ssize_t bit_offset = reader.NumberOfReadBits() - reader.ReadVarint(); in CodeInfo() local 43 BitMemoryReader reader2(reader.data(), bit_offset); // The offset is negative. in CodeInfo() 47 ssize_t bit_offset = reader.NumberOfReadBits(); in CodeInfo() local 49 callback(i, &table, reader.GetReadRegion().Subregion(bit_offset)); in CodeInfo() 115 uint32_t& bit_offset = it[i]->second; in Dedupe() local 117 DCHECK_NE(bit_offset, 0u); in Dedupe() 118 writer_.WriteVarint(writer_.NumberOfWrittenBits() - bit_offset); in Dedupe() 120 bit_offset = writer_.NumberOfWrittenBits(); // Store offset in dedup map. in Dedupe()
|