Home
last modified time | relevance | path

Searched refs:bit_offset (Results 1 – 5 of 5) sorted by relevance

/art/libartbase/base/
Dbit_memory_region.h43 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_length) in BitMemoryRegion() argument
45 *this = Subregion(bit_offset, bit_length); in BitMemoryRegion()
63 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset, size_t bit_length) const { in Subregion() argument
64 DCHECK_LE(bit_offset, bit_size_); in Subregion()
65 DCHECK_LE(bit_length, bit_size_ - bit_offset); in Subregion()
67 result.bit_start_ += bit_offset; in Subregion()
72 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset) const { in Subregion() argument
73 DCHECK_LE(bit_offset, bit_size_); in Subregion()
75 result.bit_start_ += bit_offset; in Subregion()
76 result.bit_size_ -= bit_offset; in Subregion()
[all …]
Dbit_memory_region_test.cc56 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 …]
Dbit_struct.h272 #define BITSTRUCT_FIELD(type, bit_offset, bit_width) \ argument
273 BitStructField<type, (bit_offset), (bit_width), StorageType>
274 #define BITSTRUCT_INT(bit_offset, bit_width) \ argument
275 BitStructInt<(bit_offset), (bit_width), StorageType>
276 #define BITSTRUCT_UINT(bit_offset, bit_width) \ argument
277 BitStructUint<(bit_offset), (bit_width), StorageType>
Dmemory_region.h144 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/
Dstack_map.cc42 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()