Home
last modified time | relevance | path

Searched refs:countTrailingZeros (Results 1 – 25 of 95) sorted by relevance

1234

/external/llvm/unittests/Support/
DMathExtrasTest.cpp17 TEST(MathExtras, countTrailingZeros) { in TEST() argument
22 EXPECT_EQ(8u, countTrailingZeros(Z8)); in TEST()
23 EXPECT_EQ(16u, countTrailingZeros(Z16)); in TEST()
24 EXPECT_EQ(32u, countTrailingZeros(Z32)); in TEST()
25 EXPECT_EQ(64u, countTrailingZeros(Z64)); in TEST()
31 EXPECT_EQ(1u, countTrailingZeros(NZ8)); in TEST()
32 EXPECT_EQ(1u, countTrailingZeros(NZ16)); in TEST()
33 EXPECT_EQ(1u, countTrailingZeros(NZ32)); in TEST()
34 EXPECT_EQ(1u, countTrailingZeros(NZ64)); in TEST()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMAddressingModes.h143 unsigned TZ = countTrailingZeros(Imm); in getSOImmValRotate()
156 unsigned TZ2 = countTrailingZeros(Imm & ~63U); in getSOImmValRotate()
224 return countTrailingZeros(Imm); in getThumbImmValShift()
243 return countTrailingZeros(Imm); in getThumbImm16ValShift()
331 unsigned RotAmt = countTrailingZeros(V); in getT2SOImmValRotate()
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp36 EXPECT_EQ(0u, Minus1.countTrailingZeros()); in TEST()
50 EXPECT_EQ(1u, i33minus2.countTrailingZeros()); in TEST()
64 EXPECT_EQ(64u, i65minus.countTrailingZeros()); in TEST()
73 EXPECT_EQ(0u, u128max.countTrailingZeros()); in TEST()
81 EXPECT_EQ(0u, u64max.countTrailingZeros()); in TEST()
90 EXPECT_EQ(128u, zero.countTrailingZeros()); in TEST()
100 EXPECT_EQ(0u, one.countTrailingZeros()); in TEST()
/external/swiftshader/third_party/subzero/src/
DIceBitVector.h203 return NumBitsPerPos * Pos + llvm::countTrailingZeros(Bits[Pos]);
222 return NumBitsPerPos * Pos + llvm::countTrailingZeros(B);
391 return i * BITWORD_SIZE + llvm::countTrailingZeros(Bits[i]); in find_first()
409 return WordPos * BITWORD_SIZE + llvm::countTrailingZeros(Copy); in find_next()
414 return i * BITWORD_SIZE + llvm::countTrailingZeros(Bits[i]); in find_next()
/external/llvm/unittests/ADT/
DAPIntTest.cpp44 EXPECT_EQ(0u, Minus1.countTrailingZeros()); in TEST()
58 EXPECT_EQ(1u, i33minus2.countTrailingZeros()); in TEST()
72 EXPECT_EQ(65u, i65.countTrailingZeros()); in TEST()
80 EXPECT_EQ(64u, i65minus.countTrailingZeros()); in TEST()
89 EXPECT_EQ(0u, u128max.countTrailingZeros()); in TEST()
97 EXPECT_EQ(0u, u64max.countTrailingZeros()); in TEST()
106 EXPECT_EQ(128u, zero.countTrailingZeros()); in TEST()
116 EXPECT_EQ(0u, one.countTrailingZeros()); in TEST()
/external/llvm/include/llvm/ADT/
DBitVector.h160 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]); in find_first()
178 return WordPos * BITWORD_SIZE + countTrailingZeros(Copy); in find_next()
183 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]); in find_next()
DSparseBitVector.h134 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]);
154 return WordPos * BITWORD_SIZE + countTrailingZeros(Copy);
159 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]);
DSmallBitVector.h214 return countTrailingZeros(Bits); in find_first()
228 return countTrailingZeros(Bits); in find_next()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DBitVector.h160 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]); in find_first()
178 return WordPos * BITWORD_SIZE + countTrailingZeros(Copy); in find_next()
183 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]); in find_next()
/external/llvm/tools/llvm-objdump/
DELFDump.cpp60 countTrailingZeros<uint64_t>(Phdr.p_align)) in printProgramHeaders()
/external/llvm/include/llvm/Support/
DMathExtras.h111 std::size_t countTrailingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
198 return countTrailingZeros(Val, ZB_Undefined);
434 return countTrailingZeros(~Value, ZB);
/external/llvm/lib/Object/
DELFObjectFile.cpp28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h111 std::size_t countTrailingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
198 return countTrailingZeros(Val, ZB_Undefined);
456 return countTrailingZeros(~Value, ZB);
/external/llvm/lib/Target/Mips/
DMipsAnalyzeImmediate.cpp43 unsigned Shamt = countTrailingZeros(Imm); in GetInstSeqLsSLL()
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp859 unsigned KReg = countTrailingZeros(Kills); in adjustLiveRegs()
860 unsigned DReg = countTrailingZeros(Defs); in adjustLiveRegs()
883 unsigned KReg = countTrailingZeros(Kills); in adjustLiveRegs()
891 unsigned DReg = countTrailingZeros(Defs); in adjustLiveRegs()
1600 unsigned FPReg = countTrailingZeros(FPKills); in handleSpecialFP()
/external/llvm/lib/CodeGen/
DExecutionDepsFix.cpp101 return countTrailingZeros(AvailableDomains); in getFirstDomain()
647 unsigned domain = countTrailingZeros(available); in visitSoftInstr()
DTargetRegisterInfo.cpp187 TRI->getRegClass(I + countTrailingZeros(Common)); in firstCommonClass()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1518 unsigned AP2TrailingZeros = AP2.countTrailingZeros(); in FoldICmpCstShlCst()
1528 int Shift = AP1.countTrailingZeros() - AP2TrailingZeros; in FoldICmpCstShlCst()
1826 unsigned NTZ = AndCst->getValue().countTrailingZeros(); in visitICmpInstWithInstAndIntCst()
2061 Amt != 0 && RHSV.countTrailingZeros() >= Amt) { in visitICmpInstWithInstAndIntCst()
2510 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in ProcessUGT_ADDCST_ADD()
2932 unsigned trailingZeros = RHS.countTrailingZeros(); in DemandedBitsLHSMask()
3437 unsigned CmpVal = ValToCheck.countTrailingZeros(); in visitICmpInst()
3441 unsigned CmpVal = ValToCheck.countTrailingZeros() - 1; in visitICmpInst()
3454 CI->countTrailingZeros())); in visitICmpInst()
3481 unsigned CmpVal = ValToCheck.countTrailingZeros(); in visitICmpInst()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp239 llvm::countTrailingZeros((unsigned long long)NewOffset.getQuantity()); in calculateOptimalPad()
/external/llvm/lib/Support/
DScaledNumber.cpp88 if (int Zeros = countTrailingZeros(Divisor)) { in divide64()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1649 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in ProcessUGT_ADDCST_ADD()
1763 unsigned trailingZeros = RHS.countTrailingZeros(); in DemandedBitsLHSMask()
1969 unsigned CmpVal = Op0KnownZeroInverted.countTrailingZeros(); in visitICmpInst()
1981 CI->countTrailingZeros())); in visitICmpInst()
2006 unsigned CmpVal = Op0KnownZeroInverted.countTrailingZeros(); in visitICmpInst()
2018 CI->countTrailingZeros())); in visitICmpInst()
2411 AP.countTrailingZeros())); in visitICmpInst()
/external/llvm/lib/Analysis/
DDemandedBits.cpp130 std::min(BitWidth, KnownOne.countTrailingZeros()+1)); in determineLiveOperandBits()
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.cpp94 << countTrailingZeros(getUnits())); in setWeight()
/external/llvm/include/llvm/Target/
DTargetRegisterInfo.h1035 unsigned Offset = countTrailingZeros(CurrentChunk); in moveToNextID()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugInfoEntry.cpp83 uint64_t Shift = countTrailingZeros(Val); in dumpApplePropertyAttribute()

1234