Home
last modified time | relevance | path

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

/external/freetype/src/cff/
Dcf2font.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()
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/cff/
Dcf2font.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()
/external/pdfium/third_party/freetype/src/cff/
Dcf2font.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()
/external/llvm/include/llvm/ADT/
DAPInt.h1522 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2() function
1554 unsigned lg = logBase2(); in nearestLogBase2()
1563 return logBase2(); in exactLogBase2()
1783 inline unsigned logBase2(const APInt &APIVal) { return APIVal.logBase2(); } in logBase2() function
/external/llvm/unittests/ADT/
DAPIntTest.cpp715 EXPECT_EQ(APInt(15, 7).logBase2(), 2U); in TEST()
718 EXPECT_EQ(APInt(15, 8).logBase2(), 3U); in TEST()
721 EXPECT_EQ(APInt(15, 9).logBase2(), 3U); in TEST()
921 EXPECT_EQ(A2.nearestLogBase2(), A2.logBase2()); in TEST()
938 EXPECT_EQ(A5.nearestLogBase2(), A5.logBase2()); in TEST()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp328 unsigned C1Log = C1->logBase2(); in foldSelectICmpAndOr()
329 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
798 unsigned ValZeros = ValC->getValue().logBase2(); in foldSelectICmpAnd()
799 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
DInstCombineMulDivRem.cpp127 Elts.push_back(ConstantInt::get(Elt->getType(), IVal->logBase2())); in getLogBase2Vector()
220 NewCst = ConstantInt::get(NewOp->getType(), IVal->logBase2()); in visitMul()
964 Op0, ConstantInt::get(Op0->getType(), C.logBase2())); in foldUDivPow2Cst()
990 N = IC.Builder->CreateAdd(N, ConstantInt::get(N->getType(), CI.logBase2())); in foldUDivShl()
DInstCombineAddSub.cpp1090 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
1092 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
DInstCombineCompares.cpp1140 ConstantInt::get(A->getType(), AP2.logBase2())); in FoldICmpCstShrCst()
1616 unsigned RHSLog2 = RHSV.logBase2(); in visitICmpInstWithInstAndIntCst()
1656 Pred, X, ConstantInt::get(RHS->getType(), RHSV.logBase2())); in visitICmpInstWithInstAndIntCst()
2413 unsigned MaskWidth = CVal.logBase2(); in ProcessUMulZExtIdiom()
3744 Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth()) in visitICmpInst()
DInstCombineCasts.cpp642 uint32_t ShiftAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp594 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
600 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
DSeparateConstOffsetFromGEP.cpp803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
864 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp776 ConstantInt::get(Ty, RHS->logBase2())); in visitMulExpr()
794 ConstantInt::get(Ty, RHS.logBase2())); in visitUDivExpr()
DValueTracking.cpp2178 return std::min(TyBits, NumBits + Denominator->logBase2()); in ComputeNumSignBits()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp734 unsigned Val = C->getValue().logBase2(); in computeAddress()
1191 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub()
1569 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp()
2196 TestBit = C->getValue().logBase2(); in emitCompareAndBranch()
4490 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()
DAArch64ISelLowering.cpp5066 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in isEXTMask()
7438 DAG.getConstant(VM1.logBase2(), DL, MVT::i64)); in performMulCombine()
7447 DAG.getConstant(VP1.logBase2(), DL, MVT::i64)); in performMulCombine()
7457 DAG.getConstant(VNP1.logBase2(), DL, MVT::i64)); in performMulCombine()
7466 DAG.getConstant(VNM1.logBase2(), DL, MVT::i64)); in performMulCombine()
8809 int NumExpectedSteps = APInt(8, NumVecElts).logBase2(); in tryMatchAcrossLaneShuffleForReduction()
DAArch64ISelDAGToDAG.cpp2172 unsigned FBits = IntVal.logBase2(); in SelectCVTFixedPosOperand()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1723 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), dl, in SimplifySetCC()
1732 DAG.getConstant(C1.logBase2(), dl, in SimplifySetCC()
DDAGCombiner.cpp2074 DAG.getConstant(ConstValue1.logBase2(), DL, in visitMUL()
2080 unsigned Log2Val = (-ConstValue1).logBase2(); in visitMUL()
2348 DAG.getConstant(N1C->getAPIntValue().logBase2(), DL, in visitUDIV()
2359 .logBase2(), in visitUDIV()
9379 cast<ConstantSDNode>(Op1)->getAPIntValue()==AndConst.logBase2()) { in visitBRCOND()
14081 unsigned ShCtV = N2C->getAPIntValue().logBase2(); in SimplifySelectCC()
14182 DAG.getConstant(N2C->getAPIntValue().logBase2(), SDLoc(Temp), in SimplifySelectCC()
DSelectionDAGBuilder.cpp3043 unsigned Amt = ElementSize.logBase2(); in visitGetElementPtr()
/external/llvm/lib/Support/
DAPInt.cpp660 unsigned log = tmp.logBase2(); in getBitsNeeded()
/external/clang/lib/Sema/
DSemaChecking.cpp6370 unsigned log2 = divisor.logBase2(); // floor(log_2(divisor)) in GetExprRange()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp10472 unsigned BitInX = AndC->getAPIntValue().logBase2(); in PerformCMOVToBFICombine()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp24164 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in PerformSELECTCombine()
24710 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in PerformCMOVCombine()