Home
last modified time | relevance | path

Searched refs:countLeadingZeros (Results 1 – 25 of 120) sorted by relevance

12345

/external/llvm/unittests/Support/
DMathExtrasTest.cpp37 TEST(MathExtras, countLeadingZeros) { in TEST() argument
42 EXPECT_EQ(8u, countLeadingZeros(Z8)); in TEST()
43 EXPECT_EQ(16u, countLeadingZeros(Z16)); in TEST()
44 EXPECT_EQ(32u, countLeadingZeros(Z32)); in TEST()
45 EXPECT_EQ(64u, countLeadingZeros(Z64)); in TEST()
51 EXPECT_EQ(2u, countLeadingZeros(NZ8)); in TEST()
52 EXPECT_EQ(10u, countLeadingZeros(NZ16)); in TEST()
53 EXPECT_EQ(26u, countLeadingZeros(NZ32)); in TEST()
54 EXPECT_EQ(58u, countLeadingZeros(NZ64)); in TEST()
56 EXPECT_EQ(8u, countLeadingZeros(0x00F000FFu)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DMathExtrasTest.cpp37 TEST(MathExtras, countLeadingZeros) { in TEST() argument
42 EXPECT_EQ(8u, countLeadingZeros(Z8)); in TEST()
43 EXPECT_EQ(16u, countLeadingZeros(Z16)); in TEST()
44 EXPECT_EQ(32u, countLeadingZeros(Z32)); in TEST()
45 EXPECT_EQ(64u, countLeadingZeros(Z64)); in TEST()
51 EXPECT_EQ(2u, countLeadingZeros(NZ8)); in TEST()
52 EXPECT_EQ(10u, countLeadingZeros(NZ16)); in TEST()
53 EXPECT_EQ(26u, countLeadingZeros(NZ32)); in TEST()
54 EXPECT_EQ(58u, countLeadingZeros(NZ64)); in TEST()
56 EXPECT_EQ(8u, countLeadingZeros(0x00F000FFu)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.h68 MB = countLeadingZeros(Val); in isRunOfOnes()
70 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes()
76 ME = countLeadingZeros(Val) - 1; in isRunOfOnes()
78 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes()
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.h66 MB = countLeadingZeros(Val); in isRunOfOnes()
68 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes()
74 ME = countLeadingZeros(Val) - 1; in isRunOfOnes()
76 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPIntTest.cpp46 EXPECT_EQ(0u, Minus1.countLeadingZeros()); in TEST()
57 EXPECT_EQ(0u, i33minus2.countLeadingZeros()); in TEST()
68 EXPECT_EQ(45u, i61.countLeadingZeros()); in TEST()
77 EXPECT_EQ(42u, i61.countLeadingZeros()); in TEST()
88 EXPECT_EQ(65u, i65.countLeadingZeros()); in TEST()
97 EXPECT_EQ(0u, i65minus.countLeadingZeros()); in TEST()
107 EXPECT_EQ(0u, u128max.countLeadingZeros()); in TEST()
114 EXPECT_EQ(64u, u64max.countLeadingZeros()); in TEST()
123 EXPECT_EQ(128u, zero.countLeadingZeros()); in TEST()
133 EXPECT_EQ(127u, one.countLeadingZeros()); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DMathExtras.h180 std::size_t countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
214 return countLeadingZeros(Val, ZB_Undefined) ^
418 return countLeadingZeros(~Value, ZB);
492 return 31 - countLeadingZeros(Value);
498 return 63 - countLeadingZeros(Value);
505 return 32 - countLeadingZeros(Value - 1);
511 return 64 - countLeadingZeros(Value - 1);
619 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
DScaledNumber.h89 int Shift = 64 - Width - countLeadingZeros(Digits);
196 int32_t LocalFloor = sizeof(Digits) * 8 - countLeadingZeros(Digits) - 1; in getLgImpl()
308 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff); in matchScales()
429 static int countLeadingZeros32(uint32_t N) { return countLeadingZeros(N); } in countLeadingZeros32()
430 static int countLeadingZeros64(uint64_t N) { return countLeadingZeros(N); } in countLeadingZeros64()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h180 std::size_t countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
214 return countLeadingZeros(Val, ZB_Undefined) ^
440 return countLeadingZeros(~Value, ZB);
514 return 31 - countLeadingZeros(Value);
520 return 63 - countLeadingZeros(Value);
527 return 32 - countLeadingZeros(Value - 1);
533 return 64 - countLeadingZeros(Value - 1);
641 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp33 EXPECT_EQ(0u, Minus1.countLeadingZeros()); in TEST()
47 EXPECT_EQ(0u, i33minus2.countLeadingZeros()); in TEST()
61 EXPECT_EQ(0u, i65minus.countLeadingZeros()); in TEST()
71 EXPECT_EQ(0u, u128max.countLeadingZeros()); in TEST()
78 EXPECT_EQ(64u, u64max.countLeadingZeros()); in TEST()
87 EXPECT_EQ(128u, zero.countLeadingZeros()); in TEST()
97 EXPECT_EQ(127u, one.countLeadingZeros()); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMathExtras.h189 std::size_t countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
250 return countLeadingZeros(Val, ZB_Undefined) ^
466 return countLeadingZeros<T>(~Value, ZB);
540 return 31 - countLeadingZeros(Value);
546 return 63 - countLeadingZeros(Value);
553 return 32 - countLeadingZeros(Value - 1);
559 return 64 - countLeadingZeros(Value - 1);
654 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
DKnownBits.h177 return One.countLeadingZeros(); in countMaxLeadingZeros()
182 return Zero.countLeadingZeros(); in countMaxLeadingOnes()
DScaledNumber.h89 int Shift = 64 - Width - countLeadingZeros(Digits);
196 int32_t LocalFloor = sizeof(Digits) * 8 - countLeadingZeros(Digits) - 1; in getLgImpl()
308 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff); in matchScales()
429 static int countLeadingZeros32(uint32_t N) { return countLeadingZeros(N); } in countLeadingZeros32()
430 static int countLeadingZeros64(uint64_t N) { return countLeadingZeros(N); } in countLeadingZeros64()
/external/capstone/arch/AArch64/
DAArch64AddressingModes.h136 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f)); in AArch64_AM_decodeLogicalImmediate()
169 len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f)); in AArch64_AM_isValidDecodeLogicalImmediate()
/external/llvm/lib/Support/
DScaledNumber.cpp48 unsigned LeadingZeros = countLeadingZeros(Upper); in multiply64()
66 if (int Zeros = countLeadingZeros(Dividend64)) { in divide32()
98 if (int Zeros = countLeadingZeros(Dividend)) { in divide64()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DScaledNumber.cpp48 unsigned LeadingZeros = countLeadingZeros(Upper); in multiply64()
66 if (int Zeros = countLeadingZeros(Dividend64)) { in divide32()
98 if (int Zeros = countLeadingZeros(Dividend)) { in divide64()
/external/llvm/include/llvm/ADT/
DAPInt.h1303 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits()
1367 unsigned countLeadingZeros() const { in countLeadingZeros() function
1370 return llvm::countLeadingZeros(VAL) - unusedBits; in countLeadingZeros()
1388 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
1531 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2()
1535 return BitWidth - (*this - 1).countLeadingZeros(); in ceilLogBase2()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1279 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits()
1343 unsigned countLeadingZeros() const { in countLeadingZeros() function
1346 return llvm::countLeadingZeros(VAL) - unusedBits; in countLeadingZeros()
1364 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
1507 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2()
1513 return BitWidth - temp.countLeadingZeros(); in ceilLogBase2()
/external/llvm/unittests/ADT/
DAPIntTest.cpp41 EXPECT_EQ(0u, Minus1.countLeadingZeros()); in TEST()
55 EXPECT_EQ(0u, i33minus2.countLeadingZeros()); in TEST()
68 EXPECT_EQ(65u, i65.countLeadingZeros()); in TEST()
77 EXPECT_EQ(0u, i65minus.countLeadingZeros()); in TEST()
87 EXPECT_EQ(0u, u128max.countLeadingZeros()); in TEST()
94 EXPECT_EQ(64u, u64max.countLeadingZeros()); in TEST()
103 EXPECT_EQ(128u, zero.countLeadingZeros()); in TEST()
113 EXPECT_EQ(127u, one.countLeadingZeros()); in TEST()
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h1136 return BitWidth - countLeadingZeros(); in getActiveBits()
1193 unsigned countLeadingZeros() const { in countLeadingZeros() function
1212 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
1349 return BitWidth - 1 - countLeadingZeros(); in logBase2()
1354 return BitWidth - (*this - 1).countLeadingZeros(); in ceilLogBase2()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp59 int msksize = 32 - countLeadingZeros(value); in immMskBitp()
141 SDValue MskSize = getI32Imm(32 - countLeadingZeros((uint32_t)Val), dl); in Select()
/external/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp59 int msksize = 32 - countLeadingZeros(value); in immMskBitp()
141 SDValue MskSize = getI32Imm(32 - countLeadingZeros((uint32_t)Val), dl); in Select()
/external/llvm/lib/Target/ARM/
DThumb2InstrInfo.cpp311 unsigned RotAmt = countLeadingZeros(ThisVal); in emitT2RegPlusImmediate()
328 unsigned RotAmt = countLeadingZeros(ThisVal); in emitT2RegPlusImmediate()
517 unsigned RotAmt = countLeadingZeros<unsigned>(Offset); in rewriteT2FrameIndex()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DThumb2InstrInfo.cpp333 unsigned RotAmt = countLeadingZeros(ThisVal); in emitT2RegPlusImmediate()
350 unsigned RotAmt = countLeadingZeros(ThisVal); in emitT2RegPlusImmediate()
541 unsigned RotAmt = countLeadingZeros<unsigned>(Offset); in rewriteT2FrameIndex()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMUnwindOpAsm.cpp109 auto RangeMSB = 32 - countLeadingZeros(Regs); in EmitVFPRegSave()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/MCTargetDesc/
DARMUnwindOpAsm.cpp111 auto RangeMSB = 32 - countLeadingZeros(Regs); in EmitVFPRegSave()

12345