Searched refs:CLZ (Results 1 – 9 of 9) 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() 342 int bit_position = BitSizeOf<T>() - (CLZ(static_cast<unsigned_type>(opnd)) + 1); in HighestOneBitValue()
|
D | leb128.h | 204 uint32_t x = 6 + 32 - CLZ(data | 1U); in UnsignedLeb128Size() 242 uint32_t x = 1 /* we need to encode the sign bit */ + 6 + 32 - CLZ(data | 1U); in SignedLeb128Size()
|
D | bit_utils_iterator.h | 95 return std::numeric_limits<T>::digits - 1u - CLZ(this->bits_);
|
D | bit_vector.cc | 286 return 31 - CLZ(value) + (idx * kWordBits); in GetHighestBitSet()
|
D | mem_map.cc | 125 constexpr size_t leading_zeros = CLZ(static_cast<uint32_t>(ART_BASE_ADDRESS)); in CreateStartPos()
|
/art/runtime/ |
D | string_builder_append.cc | 105 size_t log2_value = BitSizeOf<uint64_t>() - 1u - CLZ(value); in Uint64Length()
|
/art/compiler/optimizing/ |
D | intrinsics_x86_64.cc | 2351 value = is_long ? 63 - CLZ(static_cast<uint64_t>(value)) in GenOneBit() 2352 : 31 - CLZ(static_cast<uint32_t>(value)); in GenOneBit() 2481 value = is_long ? CLZ(static_cast<uint64_t>(value)) : CLZ(static_cast<uint32_t>(value)); in GenLeadingZeros()
|
D | intrinsics_x86.cc | 2375 value = is_long ? CLZ(static_cast<uint64_t>(value)) : CLZ(static_cast<uint32_t>(value)); in GenLeadingZeros()
|