Home
last modified time | relevance | path

Searched refs:BitSizeOf (Results 1 – 15 of 15) sorted by relevance

/art/libartbase/base/
Dbit_utils.h32 constexpr size_t BitSizeOf() { in BitSizeOf() function
42 constexpr size_t BitSizeOf(T /*x*/) { in BitSizeOf() function
43 return BitSizeOf<T>(); in BitSizeOf()
65 return (x == 0) ? BitSizeOf<T>() : CLZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CLZ()
84 return (x == 0) ? BitSizeOf<T>() : CTZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CTZ()
141 return (val != 0) ? static_cast<T>(1u) << (BitSizeOf<T>() - CLZ(val) - 1u) : 0; in TruncToPowerOfTwo()
247 if (N == BitSizeOf<T>()) { in IsInt()
251 CHECK_LT(N, BitSizeOf<T>()); in IsInt()
260 DCHECK_LT(bits, BitSizeOf<T>()); in GetIntLimit()
267 static_assert(kBits <= BitSizeOf<T>(), "kBits must be <= max."); in IsInt()
[all …]
Dbit_memory_region.h115 DCHECK_LE(bit_length, BitSizeOf<Result>()); in LoadBits()
121 size_t width = BitSizeOf<Result>(); in LoadBits()
142 DCHECK_LE(bit_length, BitSizeOf<uint32_t>()); in StoreBits()
149 uint32_t mask = std::numeric_limits<uint32_t>::max() >> (BitSizeOf<uint32_t>() - bit_length); in StoreBits()
167 constexpr size_t kNumBits = BitSizeOf<uint32_t>(); in StoreBits()
183 constexpr size_t kNumBits = BitSizeOf<uint32_t>(); in OrBits()
199 constexpr size_t kNumBits = BitSizeOf<uint32_t>(); in PopCount()
215 constexpr size_t kNumBits = BitSizeOf<uint32_t>(); in HasSomeBitSet()
229 constexpr size_t kNumBits = BitSizeOf<uint32_t>(); in Compare()
Dbit_struct_detail.h43 typename std::conditional<kBitSize <= BitSizeOf<uintmax_t>(), uintmax_t,
Dbit_string.h277 static_assert(BitSizeOf<BitString::StorageType>() >=
Dbit_table_test.cc147 for (size_t bit_length = 0; bit_length <= BitSizeOf<uint64_t>(); ++bit_length) { in TEST()
/art/runtime/
Dsubtype_check_bits_and_status.h70 BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf<BitString::StorageType>())
77 BITSTRUCT_INT(/*lsb=*/ 0, /*width=*/ BitSizeOf<BitString::StorageType>()) int32_alias_;
Dstring_builder_append.h54 static constexpr size_t kMaxArgs = BitSizeOf<uint32_t>() / kBitsPerArg;
55 static_assert(kMaxArgs * kBitsPerArg == BitSizeOf<uint32_t>(), "Expecting no extra bits.");
Dindirect_reference_table.h352 DCHECK_LE(MinimumBitsToStore(table_index), BitSizeOf<uintptr_t>() - kSerialBits - kKindBits); in EncodeIndex()
Dstring_builder_append.cc105 size_t log2_value = BitSizeOf<uint64_t>() - 1u - CLZ(value); in Uint64Length()
Dstack_map.cc191 const size_t kNumBits = BitSizeOf<uint32_t>(); in DecodeDexRegisterMap()
Dthread.cc3966 for (uint32_t i = 0; i < BitSizeOf<uint32_t>(); ++i) { in VisitQuickFrameWithVregCallback()
/art/compiler/optimizing/
Dintrinsic_objects.h74 static constexpr size_t kIndexBits = BitSizeOf<uint32_t>() - kPatchTypeBits;
Dbounds_check_elimination.cc1055 if (n == BitSizeOf<int32_t>() - 1) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
/art/dex2oat/linker/
Dimage_writer.h247 static const size_t kBinShift = BitSizeOf<uint32_t>() - kBinBits - LockWord::kGCStateSize;
/art/runtime/interpreter/
Dinterpreter_common.cc1371 (static_cast<uint64_t>(shadow_frame.GetVReg(src_reg + 1)) << BitSizeOf<uint32_t>()) | in DoCallCommon()