Home
last modified time | relevance | path

Searched refs:kBitsPerByte (Results 1 – 25 of 37) sorted by relevance

12

/art/libartbase/base/
Dmemory_region_test.cc30 + (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()
Dbit_memory_region_test.cc29 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()
Dbit_memory_region.h43 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 …]
Dbit_field.h37 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.");
Dbit_struct_detail.h62 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()
Dglobals.h30 static constexpr size_t kBitsPerByte = 8; variable
32 static constexpr int kBitsPerIntPtrT = sizeof(intptr_t) * kBitsPerByte;
Dmemory_region.h50 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()
Dutils.h78 return ((bitmap[idx / kBitsPerByte] >> (idx % kBitsPerByte)) & 0x01) != 0; in TestBitmap()
Dstats.h35 void AddBits(double bits, size_t count = 1) { Add(bits / kBitsPerByte, count); }
Dbit_struct_test.cc28 const size_t kExpectedSize = (BitStructSizeOf<T>() < kBitsPerByte) in ValidateBitStructSize()
29 ? kBitsPerByte in ValidateBitStructSize()
33 const size_t kActualSize = sizeof(T) * kBitsPerByte; in ValidateBitStructSize()
Dbit_vector.h249 DCHECK_LE(static_cast<size_t>(GetHighestBitSet() + 1), len * kBitsPerByte); in CopyTo()
Dbit_utils.h504 return RoundUp(num_bits, kBitsPerByte) / kBitsPerByte; in BitsToBytesRoundUp()
/art/tools/cpp-define-generator/
Dmirror_object.def29 art::LockWord::kReadBarrierStateShift / art::kBitsPerByte)
31 art::LockWord::kReadBarrierStateShift % art::kBitsPerByte)
33 static_cast<int8_t>(1 << (art::LockWord::kReadBarrierStateShift % art::kBitsPerByte)))
/art/runtime/
Dsubtype_check_bits_and_status.h36 return kBitsPerByte * sizeof(T); in NonNumericBitSizeOf()
Dobj_ptr.h43 kHeapReferenceSize * kBitsPerByte - kObjectAlignmentShift;
44 static constexpr size_t kCookieBits = sizeof(uintptr_t) * kBitsPerByte - kCookieShift;
Dstack_map.cc92 size_t deduped_offset = writer_.NumberOfWrittenBits() / kBitsPerByte; in Dedupe()
/art/libprofile/profile/
Dprofile_helpers.h50 buffer->push_back((value >> (i * kBitsPerByte)) & 0xff); in AddUintToBuffer()
Dprofile_compilation_info.h633 return RoundUp(ComputeBitmapBits(is_for_boot_image, num_method_ids), kBitsPerByte) / in ComputeBitmapStorage()
634 kBitsPerByte; in ComputeBitmapStorage()
/art/libdexfile/dex/
Dcompact_offset_table.cc45 bit_mask = (bit_mask << kBitsPerByte) | *block; in GetOffset()
108 out_data->push_back(static_cast<uint8_t>(bit_mask >> kBitsPerByte)); in Build()
Dcompact_dex_file.h105 static constexpr size_t kInsnsSizeBits = sizeof(uint16_t) * kBitsPerByte - kInsnsSizeShift;
/art/compiler/optimizing/
Dintrinsics.h171 DCHECK_LT(bit, sizeof(uint32_t) * kBitsPerByte); in IsBitSet()
176 DCHECK_LT(bit, sizeof(uint32_t) * kBitsPerByte); in SetBit()
/art/compiler/
Dcompiled_method.h75 static constexpr size_t kMaxNumberOfPackedBits = sizeof(uint32_t) * kBitsPerByte;
/art/runtime/gc/accounting/
Dbitmap.h101 static constexpr size_t kBitsPerBitmapWord = sizeof(uintptr_t) * kBitsPerByte;
Dcard_table-inl.h42 const size_t shift_in_bits = shift_in_bytes * kBitsPerByte; in byte_cas()
Dspace_bitmap.cc47 return bitmap_bytes * kBitsPerByte * kAlignment; in ComputeHeapSize()

12