Searched refs:CLZ (Results 1 – 13 of 13) sorted by relevance
/art/libartbase/base/ |
D | bit_utils_test.cc | 27 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 …]
|
D | bit_utils.h | 47 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()
|
D | leb128.h | 111 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()
|
D | bit_utils_iterator.h | 100 return std::numeric_limits<T>::digits - 1u - CLZ(this->bits_);
|
D | bit_vector.cc | 281 return 31 - CLZ(value) + (idx * kWordBits); in GetHighestBitSet()
|
D | mem_map.cc | 128 constexpr size_t leading_zeros = CLZ(static_cast<uint32_t>(ART_BASE_ADDRESS)); in CreateStartPos()
|
/art/runtime/gc/accounting/ |
D | space_bitmap-inl.h | 87 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/ |
D | string_builder_append.cc | 123 size_t log2_value = BitSizeOf<uint64_t>() - 1u - CLZ(value); in Uint64Length()
|
/art/compiler/optimizing/ |
D | intrinsics_x86_64.cc | 2933 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()
|
D | intrinsics_x86.cc | 2862 value = is_long ? CLZ(static_cast<uint64_t>(value)) : CLZ(static_cast<uint32_t>(value)); in GenLeadingZeros()
|
D | code_generator_riscv64.cc | 140 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/ |
D | assembler_riscv64.h | 2801 CLZ(assembler_->available_scratch_core_registers_); in AllocateXRegister() 2840 CLZ(assembler_->available_scratch_fp_registers_); in AllocateFRegister()
|
D | assembler_riscv64.cc | 7763 size_t shamt = CLZ(static_cast<uint64_t>(imm)); in LoadImmediate()
|