/external/freetype/src/psaux/ |
D | psfont.c | 111 FT_Int logBase2; in cf2_computeDarkening() local 156 logBase2 = FT_MSB( (FT_UInt32)stemWidthPer1000 ) + in cf2_computeDarkening() 159 if ( logBase2 >= 46 ) in cf2_computeDarkening()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 123 Constant *NewCst = ConstantInt::get(Op0->getType(), Val.logBase2()); in visitMul() 452 ConstantInt::get(Op0->getType(), C->getValue().logBase2())); in visitUDiv() 469 N = Builder->CreateAdd(N, ConstantInt::get(I.getType(),CI->logBase2())); in visitUDiv() 481 Value *TSI = Builder->CreateLShr(Op0, C1->logBase2(), Op1->getName()+".t", in visitUDiv() 485 Value *FSI = Builder->CreateLShr(Op0, C2->logBase2(), Op1->getName()+".f", in visitUDiv()
|
D | InstCombineAddSub.cpp | 123 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd() 125 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
|
D | InstCombineSelect.cpp | 627 unsigned ValZeros = ValC->getValue().logBase2(); in foldSelectICmpAnd() 628 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1531 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2() function 1563 unsigned lg = logBase2(); in nearestLogBase2() 1572 return logBase2(); in exactLogBase2() 1807 inline unsigned logBase2(const APInt &APIVal) { return APIVal.logBase2(); } in logBase2() function
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 1507 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2() function 1541 unsigned lg = logBase2(); in nearestLogBase2() 1550 return logBase2(); in exactLogBase2() 1834 inline unsigned logBase2(const APInt &APIVal) { return APIVal.logBase2(); } in logBase2() function
|
/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | APIntTest.cpp | 397 EXPECT_EQ(APInt(15, 7).logBase2(), 2U); in TEST() 400 EXPECT_EQ(APInt(15, 8).logBase2(), 3U); in TEST() 403 EXPECT_EQ(APInt(15, 9).logBase2(), 3U); in TEST()
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 1348 unsigned logBase2() const { in logBase2() function 1362 return logBase2(); in exactLogBase2() 1602 inline unsigned logBase2(const APInt& APIVal) { in logBase2() function 1603 return APIVal.logBase2(); in logBase2()
|
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 743 EXPECT_EQ(APInt(15, 7).logBase2(), 2U); in TEST() 746 EXPECT_EQ(APInt(15, 8).logBase2(), 3U); in TEST() 749 EXPECT_EQ(APInt(15, 9).logBase2(), 3U); in TEST() 949 EXPECT_EQ(A2.nearestLogBase2(), A2.logBase2()); in TEST() 966 EXPECT_EQ(A5.nearestLogBase2(), A5.logBase2()); in TEST()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 339 unsigned C1Log = C1->logBase2(); in foldSelectICmpAndOr() 340 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr() 812 unsigned ValZeros = ValC->getValue().logBase2(); in foldSelectICmpAnd() 813 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
|
D | InstCombineMulDivRem.cpp | 127 Elts.push_back(ConstantInt::get(Elt->getType(), IVal->logBase2())); in getLogBase2Vector() 220 NewCst = ConstantInt::get(NewOp->getType(), IVal->logBase2()); in visitMul() 978 Op0, ConstantInt::get(Op0->getType(), C.logBase2())); in foldUDivPow2Cst() 1004 N = IC.Builder->CreateAdd(N, ConstantInt::get(N->getType(), CI.logBase2())); in foldUDivShl()
|
D | InstCombineAddSub.cpp | 1070 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd() 1072 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
|
D | InstCombineCompares.cpp | 1466 ConstantInt::get(A->getType(), AP2.logBase2())); in FoldICmpCstShrCst() 1941 unsigned RHSLog2 = RHSV.logBase2(); in visitICmpInstWithInstAndIntCst() 1981 Pred, X, ConstantInt::get(RHS->getType(), RHSV.logBase2())); in visitICmpInstWithInstAndIntCst() 2771 unsigned MaskWidth = CVal.logBase2(); in ProcessUMulZExtIdiom() 4203 Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth()) in visitICmpInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 609 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() 615 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
|
D | SeparateConstOffsetFromGEP.cpp | 849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 910 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 575 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() 581 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
|
D | SeparateConstOffsetFromGEP.cpp | 803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 864 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | APInt.h | 1741 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2() function 1775 unsigned lg = logBase2(); in nearestLogBase2() 1784 return logBase2(); in exactLogBase2()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 177 unsigned ValZeros = ValC.logBase2(); in foldSelectICmpAnd() 178 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd() 522 C1Log = C1->logBase2(); in foldSelectICmpAndOr() 553 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
|
D | InstCombineMulDivRem.cpp | 106 return ConstantInt::get(Ty, IVal->logBase2()); in getLogBase2() 122 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getLogBase2()
|
D | InstCombineAddSub.cpp | 1162 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd() 1164 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
|
D | InstCombineCompares.cpp | 1160 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst() 1829 unsigned CLog2 = C.logBase2(); in foldICmpShlOne() 1859 return new ICmpInst(Pred, Y, ConstantInt::get(ShiftType, C.logBase2())); in foldICmpShlOne() 3546 Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth()) in foldICmpEquality() 3944 unsigned MaskWidth = CVal.logBase2(); in processUMulZExtIdiom()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | APIntTest.cpp | 1319 EXPECT_EQ(APInt(15, 7).logBase2(), 2U); in TEST() 1322 EXPECT_EQ(APInt(15, 8).logBase2(), 3U); in TEST() 1325 EXPECT_EQ(APInt(15, 9).logBase2(), 3U); in TEST() 1575 EXPECT_EQ(A2.nearestLogBase2(), A2.logBase2()); in TEST() 1592 EXPECT_EQ(A5.nearestLogBase2(), A5.logBase2()); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 776 unsigned Val = C->getValue().logBase2(); in computeAddress() 1229 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub() 1615 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp() 2307 TestBit = C->getValue().logBase2(); in emitCompareAndBranch() 4609 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 729 unsigned Val = C->getValue().logBase2(); in computeAddress() 1183 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub() 1561 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp() 2218 TestBit = C->getValue().logBase2(); in emitCompareAndBranch() 4523 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()
|