/external/llvm/unittests/Support/ |
MathExtrasTest.cpp | 37 TEST(MathExtras, countLeadingZeros) { 42 EXPECT_EQ(8u, countLeadingZeros(Z8)); 43 EXPECT_EQ(16u, countLeadingZeros(Z16)); 44 EXPECT_EQ(32u, countLeadingZeros(Z32)); 45 EXPECT_EQ(64u, countLeadingZeros(Z64)); 51 EXPECT_EQ(2u, countLeadingZeros(NZ8)); 52 EXPECT_EQ(10u, countLeadingZeros(NZ16)); 53 EXPECT_EQ(26u, countLeadingZeros(NZ32)); 54 EXPECT_EQ(58u, countLeadingZeros(NZ64)); 56 EXPECT_EQ(8u, countLeadingZeros(0x00F000FFu)) [all...] |
/external/v8/src/arm64/ |
utils-arm64.cc | 16 int CountLeadingZeros(uint64_t value, int width) { 33 return CountLeadingZeros(value, width) - 1; 35 return CountLeadingZeros(~value, width) - 1;
|
utils-arm64.h | 49 int CountLeadingZeros(uint64_t value, int width);
|
assembler-arm64.cc | 92 int index = CountLeadingZeros(list_, kRegListSizeInBits); [all...] |
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
PPCMCTargetDesc.h | 66 MB = countLeadingZeros(Val); 68 ME = countLeadingZeros((Val - 1) ^ Val); 74 ME = countLeadingZeros(Val) - 1; 76 MB = countLeadingZeros((Val - 1) ^ Val) + 1;
|
/frameworks/minikin/libs/minikin/ |
SparseBitSet.cpp | 110 int SparseBitSet::CountLeadingZeros(element x) { 124 return (fromIndex & ~kElMask) + CountLeadingZeros(e); 129 return (fromIndex & ~kPageMask) + (j << kLogBitsPerEl) + CountLeadingZeros(e); 142 return (page << kLogValuesPerPage) + (j << kLogBitsPerEl) + CountLeadingZeros(e);
|
/external/llvm/include/llvm/Support/ |
MathExtras.h | 178 std::size_t countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) { 212 return countLeadingZeros(Val, ZB_Undefined) ^ 395 return countLeadingZeros(~Value, ZB); 469 return 31 - countLeadingZeros(Value); 475 return 63 - countLeadingZeros(Value); 482 return 32 - countLeadingZeros(Value - 1); 488 return 64 - countLeadingZeros(Value - 1); 596 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
|
ScaledNumber.h | 89 int Shift = 64 - Width - countLeadingZeros(Digits); 196 int32_t LocalFloor = sizeof(Digits) * 8 - countLeadingZeros(Digits) - 1; 308 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff); 429 static int countLeadingZeros32(uint32_t N) { return countLeadingZeros(N); } 430 static int countLeadingZeros64(uint64_t N) { return countLeadingZeros(N); }
|
/external/vixl/src/vixl/ |
compiler-intrinsics.cc | 35 return CountLeadingZeros(value, width) - 1; 37 return CountLeadingZeros(~value, width) - 1;
|
compiler-intrinsics.h | 115 inline int CountLeadingZeros(V value, int width = (sizeof(V) * 8)) {
|
utils.h | 189 return (sizeof(value) * 8 - 1) - CountLeadingZeros(value);
|
/external/llvm/lib/Support/ |
ScaledNumber.cpp | 47 unsigned LeadingZeros = countLeadingZeros(Upper); 65 if (int Zeros = countLeadingZeros(Dividend64)) { 97 if (int Zeros = countLeadingZeros(Dividend)) {
|
APInt.cpp | 708 return llvm::countLeadingZeros(MSW) - (APINT_BITS_PER_WORD - BitsInMSW); 715 Count += llvm::countLeadingZeros(pVal[i-1]); [all...] |
/frameworks/minikin/include/minikin/ |
SparseBitSet.h | 79 static int CountLeadingZeros(element x);
|
/external/llvm/lib/Target/XCore/ |
XCoreISelDAGToDAG.cpp | 60 int msksize = 32 - countLeadingZeros(value); 142 SDValue MskSize = getI32Imm(32 - countLeadingZeros((uint32_t)Val), dl);
|
/external/llvm/unittests/ADT/ |
APIntTest.cpp | 41 EXPECT_EQ(0u, Minus1.countLeadingZeros()); 55 EXPECT_EQ(0u, i33minus2.countLeadingZeros()); 68 EXPECT_EQ(65u, i65.countLeadingZeros()); 77 EXPECT_EQ(0u, i65minus.countLeadingZeros()); 87 EXPECT_EQ(0u, u128max.countLeadingZeros()); 94 EXPECT_EQ(64u, u64max.countLeadingZeros()); 103 EXPECT_EQ(128u, zero.countLeadingZeros()); 113 EXPECT_EQ(127u, one.countLeadingZeros()); [all...] |
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
ARMUnwindOpAsm.cpp | 109 auto RangeMSB = 32 - countLeadingZeros(Regs);
|
/external/llvm/lib/Target/ARM/ |
Thumb2InstrInfo.cpp | 304 unsigned RotAmt = countLeadingZeros(ThisVal); 321 unsigned RotAmt = countLeadingZeros(ThisVal); 510 unsigned RotAmt = countLeadingZeros<unsigned>(Offset);
|
/external/llvm/include/llvm/ADT/ |
APInt.h | 213 /// out-of-line slow case for countLeadingZeros [all...] |
/external/llvm/lib/Analysis/ |
DemandedBits.cpp | 118 std::min(BitWidth, KnownOne.countLeadingZeros()+1));
|
VectorUtils.cpp | 551 llvm::countLeadingZeros(LeaderDemandedBits);
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
AArch64AddressingModes.h | 299 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f)); 328 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f));
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineSimplifyDemanded.cpp | 529 unsigned NLZ = DemandedMask.countLeadingZeros(); 638 if (DemandedMask.countLeadingZeros() <= ShiftAmt) [all...] |
/external/vixl/src/vixl/a64/ |
logic-a64.cc | 96 const int highest_significant_bit = 63 - CountLeadingZeros(src); 122 const int highest_significant_bit = 63 - CountLeadingZeros(src); 187 int shift = CountLeadingZeros(mantissa << (32 - 10)); [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64TargetTransformInfo.cpp | 35 unsigned LZ = countLeadingZeros((uint64_t)Val);
|