Home
last modified time | relevance | path

Searched refs:CLZ (Results 1 – 13 of 13) sorted by relevance

/art/libartbase/base/
Dbit_utils_test.cc27 static_assert(31 == CLZ<uint32_t>(1u), "TestCLZ32#1");
28 static_assert(30 == CLZ<uint32_t>(2u), "TestCLZ32#2");
29 static_assert(16 == CLZ<uint32_t>(0x00008765u), "TestCLZ32#3");
30 static_assert(15 == CLZ<uint32_t>(0x00012345u), "TestCLZ32#4");
31 static_assert(1 == CLZ<uint32_t>(0x43214321u), "TestCLZ32#5");
32 static_assert(0 == CLZ<uint32_t>(0x87654321u), "TestCLZ32#6");
35 static_assert(63 == CLZ<uint64_t>(UINT64_C(1)), "TestCLZ64#1");
36 static_assert(62 == CLZ<uint64_t>(UINT64_C(3)), "TestCLZ64#2");
37 static_assert(48 == CLZ<uint64_t>(UINT64_C(0x00008765)), "TestCLZ64#3");
38 static_assert(32 == CLZ<uint64_t>(UINT64_C(0x87654321)), "TestCLZ64#4");
[all …]
Dbit_utils.h47 constexpr int CLZ(T x) { in CLZ() function
65 return (x == 0) ? BitSizeOf<T>() : CLZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CLZ()
111 return (value == 0) ? -1 : std::numeric_limits<T>::digits - 1 - CLZ(value); in MostSignificantBit()
133 return (x < 2u) ? x : static_cast<T>(1u) << (std::numeric_limits<T>::digits - CLZ(x - 1u)); in RoundUpToPowerOfTwo()
141 return (val != 0) ? static_cast<T>(1u) << (BitSizeOf<T>() - CLZ(val) - 1u) : 0; in TruncToPowerOfTwo()
351 int bit_position = BitSizeOf<T>() - (CLZ(static_cast<unsigned_type>(opnd)) + 1); in HighestOneBitValue()
Dleb128.h111 uint32_t x = 6 + 64 - CLZ(data | 1U); in UnsignedLeb128Size()
149 uint32_t num_bits = 1 /* we need to encode the sign bit */ + 6 + 64 - CLZ(bits_to_encode | 1U); in SignedLeb128Size()
Dbit_utils_iterator.h100 return std::numeric_limits<T>::digits - 1u - CLZ(this->bits_);
Dbit_vector.cc281 return 31 - CLZ(value) + (idx * kWordBits); in GetHighestBitSet()
Dmem_map.cc128 constexpr size_t leading_zeros = CLZ(static_cast<uint32_t>(ART_BASE_ADDRESS)); in CreateStartPos()
/art/runtime/gc/accounting/
Dspace_bitmap-inl.h87 size_t pos_leading_set_bit = kBitsPerIntPtrT - CLZ(word) - 1; in FindPrecedingObject()
96 size_t pos_leading_set_bit = kBitsPerIntPtrT - CLZ(word) - 1; in FindPrecedingObject()
/art/runtime/
Dstring_builder_append.cc123 size_t log2_value = BitSizeOf<uint64_t>() - 1u - CLZ(value); in Uint64Length()
/art/compiler/optimizing/
Dintrinsics_x86_64.cc2933 value = is_long ? 63 - CLZ(static_cast<uint64_t>(value)) in GenOneBit()
2934 : 31 - CLZ(static_cast<uint32_t>(value)); in GenOneBit()
3063 value = is_long ? CLZ(static_cast<uint64_t>(value)) : CLZ(static_cast<uint32_t>(value)); in GenLeadingZeros()
Dintrinsics_x86.cc2862 value = is_long ? CLZ(static_cast<uint64_t>(value)) : CLZ(static_cast<uint32_t>(value)); in GenLeadingZeros()
Dcode_generator_riscv64.cc140 static_assert(CLZ(enum_cast<uint32_t>(kStatus)) == kClassStatusLsbPosition); in ShiftedSignExtendedClassStatusValue()
1185 __ Slli(tmp, tmp, CLZ(static_cast<uint64_t>(Thread::SuspendOrCheckpointRequestFlags()))); in GenerateSuspendCheck()
/art/compiler/utils/riscv64/
Dassembler_riscv64.h2801 CLZ(assembler_->available_scratch_core_registers_); in AllocateXRegister()
2840 CLZ(assembler_->available_scratch_fp_registers_); in AllocateFRegister()
Dassembler_riscv64.cc7763 size_t shamt = CLZ(static_cast<uint64_t>(imm)); in LoadImmediate()