Home
last modified time | relevance | path

Searched refs:CountLeadingZeros (Results 1 – 25 of 34) sorted by relevance

12

/external/libgav1/libgav1/src/utils/
Dcommon.h90 inline int CountLeadingZeros(uint32_t n) { in CountLeadingZeros() function
95 inline int CountLeadingZeros(uint64_t n) { in CountLeadingZeros() function
107 inline int CountLeadingZeros(uint32_t n) { in CountLeadingZeros() function
116 inline int CountLeadingZeros(uint64_t n) { in CountLeadingZeros() function
152 inline int CountLeadingZeros(T n) { in CountLeadingZeros() function
163 inline int CountLeadingZeros(uint32_t n) { return CountLeadingZeros<31>(n); } in CountLeadingZeros() function
165 inline int CountLeadingZeros(uint64_t n) { return CountLeadingZeros<63>(n); } in CountLeadingZeros() function
188 return 31 - CountLeadingZeros(static_cast<uint32_t>(n)); in FloorLog2()
193 return 31 - CountLeadingZeros(n); in FloorLog2()
198 return 63 - CountLeadingZeros(static_cast<uint64_t>(n)); in FloorLog2()
[all …]
/external/v8/src/codegen/arm64/
Dutils-arm64.cc75 int CountLeadingZeros(uint64_t value, int width) { in CountLeadingZeros() function
86 return CountLeadingZeros(value, width) - 1; in CountLeadingSignBits()
88 return CountLeadingZeros(~value, width) - 1; in CountLeadingSignBits()
108 return 63 - CountLeadingZeros(value, 64); in HighestSetBitPosition()
Dutils-arm64.h34 int CountLeadingZeros(uint64_t value, int width);
Dassembler-arm64.cc126 int index = CountLeadingZeros(list_, kRegListSizeInBits); in PopHighestIndex()
4104 clz_a = CountLeadingZeros(a, kXRegSizeInBits); in IsImmLogical()
4105 int clz_c = CountLeadingZeros(c, kXRegSizeInBits); in IsImmLogical()
4126 clz_a = CountLeadingZeros(a, kXRegSizeInBits); in IsImmLogical()
4155 int multiplier_idx = CountLeadingZeros(d, kXRegSizeInBits) - 57; in IsImmLogical()
4174 int clz_b = (b == 0) ? -1 : CountLeadingZeros(b, kXRegSizeInBits); in IsImmLogical()
/external/libcxx/test/support/
Dhexfloat.h26 static int CountLeadingZeros(unsigned long long n) { in CountLeadingZeros() function
43 int exp2 = -static_cast<int>(Digits - CountLeadingZeros(m0)/4*4); in hexfloat()
/external/vixl/src/
Dcompiler-intrinsics-vixl.cc37 return CountLeadingZeros(value, width) - 1; in CountLeadingSignBitsFallBack()
39 return CountLeadingZeros(~value, width) - 1; in CountLeadingSignBitsFallBack()
Dcompiler-intrinsics-vixl.h128 inline int CountLeadingZeros(V value, int width = (sizeof(V) * 8)) {
Dutils-vixl.cc288 int shift = CountLeadingZeros(mantissa << (32 - 10)); in FPToFloat()
Dutils-vixl.h462 return (sizeof(value) * 8 - 1) - CountLeadingZeros(value); in HighestSetBitPosition()
1140 const int highest_significant_bit = 63 - CountLeadingZeros(mantissa); in FPRound()
/external/v8/src/wasm/baseline/
Dliftoff-register.h116 base::bits::CountLeadingZeros(kLiftoffAssemblerGpCacheRegs) - 1;
120 base::bits::CountLeadingZeros(kLiftoffAssemblerFpCacheRegs) - 1;
126 32 - base::bits::CountLeadingZeros<uint32_t>(kAfterMaxLiftoffRegCode - 1);
128 32 - base::bits::CountLeadingZeros<uint32_t>(kMaxGpRegCode);
130 32 - base::bits::CountLeadingZeros<uint32_t>(kMaxFpRegCode);
428 8 * sizeof(regs_) - 1 - base::bits::CountLeadingZeros(regs_); in GetLastRegSet()
/external/v8/src/base/
Dbits.h80 CountLeadingZeros(T value) { in CountLeadingZeros() function
96 return CountLeadingZeros<T, next_bits>(next_value) + add; in CountLeadingZeros()
101 return CountLeadingZeros(value); in CountLeadingZeros32()
104 return CountLeadingZeros(value); in CountLeadingZeros64()
Dbits.cc20 return 1u << (32 - CountLeadingZeros(value)); in RoundUpToPowerOfTwo32()
36 return uint64_t{1} << (64 - CountLeadingZeros(value)); in RoundUpToPowerOfTwo64()
Dbits-iterator.h25 return kMSBFirst ? 8 * sizeof(T) - 1 - CountLeadingZeros(bits_)
/external/tensorflow/tensorflow/lite/kernels/internal/
Dcommon.h160 int CountLeadingZeros(T integer_input) { in CountLeadingZeros() function
191 ? CountLeadingZeros(static_cast<U>(integer_input)) - 1 in CountLeadingSignBits()
193 ? CountLeadingZeros(2 * static_cast<U>(-integer_input) - 1) in CountLeadingSignBits()
360 int z_a_headroom_plus_1 = CountLeadingZeros(static_cast<uint32>(z_a.raw())); in log_x_for_x_greater_than_or_equal_to_1_impl()
375 int z_b_headroom = CountLeadingZeros(static_cast<uint32>(z_b.raw())) - 1; in log_x_for_x_greater_than_or_equal_to_1_impl()
417 int headroom_plus_one = CountLeadingZeros(static_cast<uint32>(x)); in GetReciprocal()
453 CountLeadingZeros(static_cast<uint32>(input)) - 1; in GetInvSqrtQuantizedMultiplierExp()
/external/angle/src/common/
Dmathutil_unittest.cpp204 TEST(MathUtilTest, CountLeadingZeros) in TEST() argument
209 EXPECT_EQ(i, CountLeadingZeros(iLeadingZeros)); in TEST()
211 EXPECT_EQ(32u, CountLeadingZeros(0)); in TEST()
Dmathutil.h569 inline unsigned int CountLeadingZeros(uint32_t x) in CountLeadingZeros() function
/external/v8/src/heap/
Dobject-start-bitmap.h107 const int leading_zeroes = v8::base::bits::CountLeadingZeros(byte); in FindBasePtr()
Dobject-stats.cc351 return kSizetSize * 8 - 1 - base::bits::CountLeadingZeros(size); in Log2ForSize()
/external/v8/src/heap/cppgc/
Dobject-start-bitmap.h110 const int leading_zeroes = v8::base::bits::CountLeadingZeros(byte); in FindHeader()
/external/v8/src/objects/
Dbigint.cc940 int msd_leading_zeros = base::bits::CountLeadingZeros(x_msd); in CompareToDouble()
1087 int msd_leading_zeros = base::bits::CountLeadingZeros(x_msd); in ToDouble()
1604 int shift = base::bits::CountLeadingZeros(divisor->digit(n - 1)); in AbsoluteDivLarge()
2080 const int msd_leading_zeros = base::bits::CountLeadingZeros(msd); in ToStringBasePowerOfTwo()
2145 length * kDigitBits - base::bits::CountLeadingZeros(x->digit(length - 1)); in ToStringGeneric()
2669 int s = base::bits::CountLeadingZeros(divisor); in digit_div()
/external/vixl/src/aarch64/
Doperands-aarch64.cc49 int index = CountLeadingZeros(list_); in PopHighestIndex()
Dlogic-aarch64.cc107 const int highest_significant_bit = 63 - CountLeadingZeros(src); in UFixedToDouble()
134 const int highest_significant_bit = 63 - CountLeadingZeros(src); in UFixedToFloat()
163 const int highest_significant_bit = 63 - CountLeadingZeros(src); in UFixedToFloat16()
1688 result[i] = CountLeadingZeros(src.Uint(vform, i), laneSizeInBits); in clz()
1739 } else if ((shift_val > CountLeadingZeros(lj_src_val)) && in sshl()
1792 if ((shift_val > CountLeadingZeros(lj_src_val)) && (lj_src_val != 0)) { in ushl()
/external/v8/src/wasm/
Dwasm-external-refs.cc119 uint32_t leading_zeros = base::bits::CountLeadingZeros(input); in uint64_to_float32_wrapper()
/external/v8/src/execution/arm64/
Dsimulator-logic-arm64.cc60 const int highest_significant_bit = 63 - CountLeadingZeros(src, 64); in UFixedToDouble()
85 const int highest_significant_bit = 63 - CountLeadingZeros(src, 64); in UFixedToFloat()
151 int shift = CountLeadingZeros(mantissa << (32 - 10), 32); in FPToFloat()
1519 result[i] = CountLeadingZeros(src.Uint(vform, i), laneSizeInBits); in clz()
1561 } else if ((shift_val > CountLeadingZeros(lj_src_val, 64)) && in sshl()
1612 if ((shift_val > CountLeadingZeros(lj_src_val, 64)) && (lj_src_val != 0)) { in ushl()
/external/v8/src/compiler/
Dmachine-operator-reducer.cc2138 if (shift_bits <= base::bits::CountLeadingZeros(mask) && in ReduceWord32EqualForConstantRhs()
2139 shift_bits <= base::bits::CountLeadingZeros(rhs) && in ReduceWord32EqualForConstantRhs()

12