/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 17 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/ |
D | ARMAddressingModes.h | 143 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/ |
D | APIntTest.cpp | 36 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/ |
D | IceBitVector.h | 203 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/ |
D | APIntTest.cpp | 44 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/ |
D | BitVector.h | 160 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()
|
D | SparseBitVector.h | 134 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]); 154 return WordPos * BITWORD_SIZE + countTrailingZeros(Copy); 159 return i * BITWORD_SIZE + countTrailingZeros(Bits[i]);
|
D | SmallBitVector.h | 214 return countTrailingZeros(Bits); in find_first() 228 return countTrailingZeros(Bits); in find_next()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | BitVector.h | 160 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/ |
D | ELFDump.cpp | 60 countTrailingZeros<uint64_t>(Phdr.p_align)) in printProgramHeaders()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 111 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/ |
D | ELFObjectFile.cpp | 28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MathExtras.h | 111 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/ |
D | MipsAnalyzeImmediate.cpp | 43 unsigned Shamt = countTrailingZeros(Imm); in GetInstSeqLsSLL()
|
/external/llvm/lib/Target/X86/ |
D | X86FloatingPoint.cpp | 859 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/ |
D | ExecutionDepsFix.cpp | 101 return countTrailingZeros(AvailableDomains); in getFirstDomain() 647 unsigned domain = countTrailingZeros(available); in visitSoftInstr()
|
D | TargetRegisterInfo.cpp | 187 TRI->getRegClass(I + countTrailingZeros(Common)); in firstCommonClass()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1518 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/ |
D | PaddingChecker.cpp | 239 llvm::countTrailingZeros((unsigned long long)NewOffset.getQuantity()); in calculateOptimalPad()
|
/external/llvm/lib/Support/ |
D | ScaledNumber.cpp | 88 if (int Zeros = countTrailingZeros(Divisor)) { in divide64()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1649 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/ |
D | DemandedBits.cpp | 130 std::min(BitWidth, KnownOne.countTrailingZeros()+1)); in determineLiveOperandBits()
|
/external/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonShuffler.cpp | 94 << countTrailingZeros(getUnits())); in setWeight()
|
/external/llvm/include/llvm/Target/ |
D | TargetRegisterInfo.h | 1035 unsigned Offset = countTrailingZeros(CurrentChunk); in moveToNextID()
|
/external/llvm/lib/DebugInfo/DWARF/ |
D | DWARFDebugInfoEntry.cpp | 83 uint64_t Shift = countTrailingZeros(Val); in dumpApplePropertyAttribute()
|