Home
last modified time | relevance | path

Searched refs:logBase2 (Results 1 – 25 of 29) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/freetype/src/psaux/
Dpsfont.c111 FT_Int logBase2; in cf2_computeDarkening() local
156 logBase2 = FT_MSB( (FT_UInt32)stemWidthPer1000 ) + in cf2_computeDarkening()
159 if ( logBase2 >= 46 ) in cf2_computeDarkening()
/third_party/freetype/src/psaux/
Dpsfont.c110 FT_Int logBase2; in cf2_computeDarkening() local
155 logBase2 = FT_MSB( (FT_UInt32)stemWidthPer1000 ) + in cf2_computeDarkening()
158 if ( logBase2 >= 46 ) in cf2_computeDarkening()
/third_party/skia/third_party/externals/freetype/src/psaux/
Dpsfont.c110 FT_Int logBase2; in cf2_computeDarkening() local
155 logBase2 = FT_MSB( (FT_UInt32)stemWidthPer1000 ) + in cf2_computeDarkening()
158 if ( logBase2 >= 46 ) in cf2_computeDarkening()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1507 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
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp609 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
615 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
DSeparateConstOffsetFromGEP.cpp849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
910 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPInt.h1805 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2() function
1839 unsigned lg = logBase2(); in nearestLogBase2()
1848 return logBase2(); in exactLogBase2()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp204 unsigned ValZeros = ValC.logBase2(); in foldSelectICmpAnd()
205 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd()
612 C1Log = C1->logBase2(); in foldSelectICmpAndOr()
643 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
2175 unsigned NewBitWidth = (*MaxValue + 1).logBase2() + 1; in matchSAddSubSat()
DInstCombineMulDivRem.cpp105 return ConstantInt::get(Ty, IVal->logBase2()); in getLogBase2()
121 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getLogBase2()
DInstCombineAddSub.cpp1241 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
1243 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
DInstCombineCompares.cpp1180 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst()
1986 unsigned CLog2 = C.logBase2(); in foldICmpShlOne()
2016 return new ICmpInst(Pred, Y, ConstantInt::get(ShiftType, C.logBase2())); in foldICmpShlOne()
4238 Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth()) in foldICmpEquality()
4653 unsigned MaskWidth = CVal.logBase2(); in processUMulZExtIdiom()
DInstCombineCasts.cpp902 uint32_t ShAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp840 if (RHS->logBase2() == RHS->getBitWidth() - 1) in visitMulExpr()
843 ConstantInt::get(Ty, RHS->logBase2()), NWFlags, in visitMulExpr()
863 ConstantInt::get(Ty, RHS.logBase2()), in visitUDivExpr()
DValueTracking.cpp2513 return std::min(TyBits, NumBits + Denominator->logBase2()); in ComputeNumSignBitsImpl()
DScalarEvolution.cpp1930 MulLHS->getAPInt().logBase2(); in getZeroExtendExpr()
3181 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp803 unsigned Val = C->getValue().logBase2(); in computeAddress()
1262 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub()
1648 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp()
2349 TestBit = C->getValue().logBase2(); in emitCompareAndBranch()
4702 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()
DAArch64ISelLowering.cpp6786 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in isEXTMask()
9811 ShiftAmt = SCVMinus1.logBase2(); in performMulCombine()
9814 ShiftAmt = CVPlus1.logBase2(); in performMulCombine()
9824 ShiftAmt = CVNegPlus1.logBase2(); in performMulCombine()
9828 ShiftAmt = CVNegMinus1.logBase2(); in performMulCombine()
DAArch64ISelDAGToDAG.cpp2694 unsigned FBits = IntVal.logBase2(); in SelectCVTFixedPosOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp2190 V1C->getAPIntValue().logBase2(), SDLoc(N), in balanceSubTree()
2220 V1C->getAPIntValue().logBase2(), SDLoc(NewRoot), in balanceSubTree()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsSEISelLowering.cpp765 APInt Floor = APInt(BitWidth, 1) << Val.logBase2(); in shouldTransformMulToShiftsAddsSubs()
806 DAG.getConstant(C.logBase2(), DL, ShiftTy)); in genConstMult()
809 APInt Floor = APInt(BitWidth, 1) << C.logBase2(); in genConstMult()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp2975 const unsigned KeptBits = I1.logBase2(); in optimizeSetCCOfSignedTruncationCheck()
2976 const unsigned KeptBitsMinusOne = I01.logBase2(); in optimizeSetCCOfSignedTruncationCheck()
3693 unsigned ShCt = AndRHS->getAPIntValue().logBase2(); in SimplifySetCC()
3703 unsigned ShCt = C1.logBase2(); in SimplifySetCC()
7478 SDValue ShiftAmt = DAG.getConstant(C.logBase2(), dl, ShiftAmtTy); in expandMULO()
DDAGCombiner.cpp3506 unsigned Log2Val = (-ConstValue1).logBase2(); in visitMUL()
3537 MathOp == ISD::ADD ? (MulC - 1).logBase2() : (MulC + 1).logBase2(); in visitMUL()
13585 cast<ConstantSDNode>(Op1)->getAPIntValue() == AndConst.logBase2()) { in rebuildSetCC()
20263 unsigned ShCt = XType.getSizeInBits() - N2C->getAPIntValue().logBase2() - 1; in foldSelectCCToShiftAnd()
20459 unsigned ShCt = N2C->getAPIntValue().logBase2(); in SimplifySelectCC()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp610 unsigned log = tmp.logBase2(); in getBitsNeeded()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DAPInt.cpp539 unsigned log = tmp.logBase2(); in getBitsNeeded()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1573 double N = NI.logBase2() * (IsReciprocal ? -1.0 : 1.0); in replacePowWithExp()

12