/art/libartbase/base/ |
D | memory_region_test.cc | 30 + (2u << kBitsPerByte) in TEST() 31 + (3u << 2 * kBitsPerByte) in TEST() 32 + (4u << 3 * kBitsPerByte), in TEST() 34 ASSERT_EQ(5 + (6 << kBitsPerByte), region.LoadUnaligned<int16_t>(5)); in TEST() 44 region.StoreUnaligned<int16_t>(1, 6 + (5 << kBitsPerByte)); in TEST() 47 + (3u << kBitsPerByte) in TEST() 48 + (2u << 2 * kBitsPerByte) in TEST() 49 + (1u << 3 * kBitsPerByte)); in TEST()
|
D | bit_memory_region_test.cc | 29 for (size_t i = 0; i < size * kBitsPerByte; i++) { in CheckBits() 31 uint8_t actual = data[i / kBitsPerByte] >> (i % kBitsPerByte); in CheckBits() 46 uint32_t upper_bound = RoundUp(MinimumBitsToStore(value), kBitsPerByte) + kVarintBits; in TEST() 56 for (size_t bit_offset = 0; bit_offset < 2 * sizeof(uint32_t) * kBitsPerByte; ++bit_offset) { in TEST() 78 for (size_t bit_offset = 0; bit_offset < 3 * sizeof(uint32_t) * kBitsPerByte; ++bit_offset) { in TEST() 80 for (size_t bit_length = 0; bit_length < sizeof(uint32_t) * kBitsPerByte; ++bit_length) { in TEST()
|
D | bit_memory_region.h | 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() [all …]
|
D | bit_field.h | 37 static_assert(position < sizeof(uintptr_t) * kBitsPerByte, "Invalid position."); 39 static_assert(size <= sizeof(uintptr_t) * kBitsPerByte, "Invalid size."); 40 static_assert(size + position <= sizeof(uintptr_t) * kBitsPerByte, "Invalid position + size.");
|
D | bit_struct_detail.h | 62 using StorageType = typename MinimumTypeHelper<T, sizeof(T) * kBitsPerByte>::type; 152 const size_t kExpectedSize = (BitStructSizeOf<T>() < kBitsPerByte) in ValidateBitStructSize() 153 ? kBitsPerByte in ValidateBitStructSize() 157 const size_t kActualSize = sizeof(T) * kBitsPerByte; in ValidateBitStructSize()
|
D | globals.h | 30 static constexpr size_t kBitsPerByte = 8; variable 32 static constexpr int kBitsPerIntPtrT = sizeof(intptr_t) * kBitsPerByte;
|
D | memory_region.h | 50 size_t size_in_bits() const { return size_ * kBitsPerByte; } in size_in_bits() 88 *ComputeInternalPointer<uint8_t>(offset + i) << (i * kBitsPerByte); in LoadUnaligned() 103 (equivalent_unsigned_integer_value >> (i * kBitsPerByte)) & 0xFF; in StoreUnaligned() 145 uintptr_t bit_remainder = (bit_offset & (kBitsPerByte - 1)); in ComputeBitPointer()
|
D | utils.h | 78 return ((bitmap[idx / kBitsPerByte] >> (idx % kBitsPerByte)) & 0x01) != 0; in TestBitmap()
|
D | stats.h | 35 void AddBits(double bits, size_t count = 1) { Add(bits / kBitsPerByte, count); }
|
D | bit_struct_test.cc | 28 const size_t kExpectedSize = (BitStructSizeOf<T>() < kBitsPerByte) in ValidateBitStructSize() 29 ? kBitsPerByte in ValidateBitStructSize() 33 const size_t kActualSize = sizeof(T) * kBitsPerByte; in ValidateBitStructSize()
|
D | bit_vector.h | 249 DCHECK_LE(static_cast<size_t>(GetHighestBitSet() + 1), len * kBitsPerByte); in CopyTo()
|
D | bit_utils.h | 504 return RoundUp(num_bits, kBitsPerByte) / kBitsPerByte; in BitsToBytesRoundUp()
|
/art/tools/cpp-define-generator/ |
D | mirror_object.def | 29 art::LockWord::kReadBarrierStateShift / art::kBitsPerByte) 31 art::LockWord::kReadBarrierStateShift % art::kBitsPerByte) 33 static_cast<int8_t>(1 << (art::LockWord::kReadBarrierStateShift % art::kBitsPerByte)))
|
/art/runtime/ |
D | subtype_check_bits_and_status.h | 36 return kBitsPerByte * sizeof(T); in NonNumericBitSizeOf()
|
D | obj_ptr.h | 43 kHeapReferenceSize * kBitsPerByte - kObjectAlignmentShift; 44 static constexpr size_t kCookieBits = sizeof(uintptr_t) * kBitsPerByte - kCookieShift;
|
D | stack_map.cc | 92 size_t deduped_offset = writer_.NumberOfWrittenBits() / kBitsPerByte; in Dedupe()
|
/art/libprofile/profile/ |
D | profile_helpers.h | 50 buffer->push_back((value >> (i * kBitsPerByte)) & 0xff); in AddUintToBuffer()
|
D | profile_compilation_info.h | 633 return RoundUp(ComputeBitmapBits(is_for_boot_image, num_method_ids), kBitsPerByte) / in ComputeBitmapStorage() 634 kBitsPerByte; in ComputeBitmapStorage()
|
/art/libdexfile/dex/ |
D | compact_offset_table.cc | 45 bit_mask = (bit_mask << kBitsPerByte) | *block; in GetOffset() 108 out_data->push_back(static_cast<uint8_t>(bit_mask >> kBitsPerByte)); in Build()
|
D | compact_dex_file.h | 105 static constexpr size_t kInsnsSizeBits = sizeof(uint16_t) * kBitsPerByte - kInsnsSizeShift;
|
/art/compiler/optimizing/ |
D | intrinsics.h | 171 DCHECK_LT(bit, sizeof(uint32_t) * kBitsPerByte); in IsBitSet() 176 DCHECK_LT(bit, sizeof(uint32_t) * kBitsPerByte); in SetBit()
|
/art/compiler/ |
D | compiled_method.h | 75 static constexpr size_t kMaxNumberOfPackedBits = sizeof(uint32_t) * kBitsPerByte;
|
/art/runtime/gc/accounting/ |
D | bitmap.h | 101 static constexpr size_t kBitsPerBitmapWord = sizeof(uintptr_t) * kBitsPerByte;
|
D | card_table-inl.h | 42 const size_t shift_in_bits = shift_in_bytes * kBitsPerByte; in byte_cas()
|
D | space_bitmap.cc | 47 return bitmap_bytes * kBitsPerByte * kAlignment; in ComputeHeapSize()
|