/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CmpInstAnalysis.cpp | 109 if (!C->isPowerOf2()) in decomposeBitTestICmp() 116 if (!(*C + 1).isPowerOf2()) in decomposeBitTestICmp() 123 if (!(*C + 1).isPowerOf2()) in decomposeBitTestICmp() 130 if (!C->isPowerOf2()) in decomposeBitTestICmp()
|
D | TargetTransformInfo.cpp | 640 if (CI->getValue().isPowerOf2()) in getOperandInfo() 654 if (CI->getValue().isPowerOf2()) in getOperandInfo() 660 if (CI->getValue().isPowerOf2()) in getOperandInfo()
|
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/ |
D | LongMathTest.java | 93 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact() 96 assertTrue(isPowerOf2); in testLog2Exact() 98 assertFalse(isPowerOf2); in testLog2Exact()
|
D | BigIntegerMathTest.java | 99 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact() 102 assertTrue(isPowerOf2); in testLog2Exact() 104 assertFalse(isPowerOf2); in testLog2Exact()
|
D | IntMathTest.java | 91 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact() 94 assertTrue(isPowerOf2); in testLog2Exact() 96 assertFalse(isPowerOf2); in testLog2Exact()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/transform/ |
D | FastHadamardTransformer.java | 162 if (!FastFourierTransformer.isPowerOf2(n)) { in fht() 213 if (!FastFourierTransformer.isPowerOf2(n)) { in fht()
|
D | FastFourierTransformer.java | 484 public static boolean isPowerOf2(long n) { in isPowerOf2() method in FastFourierTransformer 495 if (!isPowerOf2(d.length)) { in verifyDataSet() 508 if (!isPowerOf2(o.length)) { in verifyDataSet()
|
D | FastCosineTransformer.java | 224 if (!FastFourierTransformer.isPowerOf2(n)) { in fct()
|
/external/clang/lib/CodeGen/ |
D | SwiftCallingConv.cpp | 27 static bool isPowerOf2(unsigned n) { in isPowerOf2() function 403 assert(isPowerOf2(unitSize.getQuantity())); in getOffsetAtStartOfUnit() 605 if (!isPowerOf2(size)) { in getNaturalAlignment() 652 if (numElts >= 4 && isPowerOf2(numElts)) { in splitLegalVectorType() 715 if (numElts > 2 && !isPowerOf2(numElts) && in legalizeVectorType()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 604 if ((TrueVal->getValue() - FalseVal->getValue()).isPowerOf2()) in foldSelectICmpAnd() 606 else if ((FalseVal->getValue() - TrueVal->getValue()).isPowerOf2()) in foldSelectICmpAnd() 619 if (!AndRHS->getValue().isPowerOf2() || in foldSelectICmpAnd() 620 (!TrueVal->getValue().isPowerOf2() && in foldSelectICmpAnd() 621 !FalseVal->getValue().isPowerOf2())) in foldSelectICmpAnd()
|
D | InstCombineMulDivRem.cpp | 122 if (Val.isPowerOf2()) { // Replace X*(2^C) with X << C in visitMul() 145 if (Val.isNegative() && PosVal.isPowerOf2()) { in visitMul() 449 if (C->getValue().isPowerOf2()) { // 0 not included in isPowerOf2 in visitUDiv() 520 RHS->getValue().isPowerOf2()) { in visitSDiv()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | BigIntegerMathTest.java | 111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact() 114 assertTrue(isPowerOf2); in testLog2Exact() 116 assertFalse(isPowerOf2); in testLog2Exact()
|
D | IntMathTest.java | 154 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact() 157 assertTrue(isPowerOf2); in testLog2Exact() 159 assertFalse(isPowerOf2); in testLog2Exact()
|
D | LongMathTest.java | 208 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact() 211 assertTrue(isPowerOf2); in testLog2Exact() 213 assertFalse(isPowerOf2); in testLog2Exact()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 182 return (~CI->getValue() + 1).isPowerOf2(); in isHighOnes() 1481 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in FoldICmpCstShrCst() 1628 XorCst->getValue() == ~RHSV && (RHSV + 1).isPowerOf2()) in visitICmpInstWithInstAndIntCst() 1634 XorCst->getValue() == -RHSV && RHSV.isPowerOf2()) in visitICmpInstWithInstAndIntCst() 1850 if (ICI.isEquality() && RHS == LHSI->getOperand(1) && (-RHSV).isPowerOf2()) in visitICmpInstWithInstAndIntCst() 1928 bool RHSVIsPowerOf2 = RHSV.isPowerOf2(); in visitICmpInstWithInstAndIntCst() 2135 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == (RHSV - 1)) in visitICmpInstWithInstAndIntCst() 2144 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == RHSV) in visitICmpInstWithInstAndIntCst() 2182 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == 0) in visitICmpInstWithInstAndIntCst() 2191 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == 0) in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineSelect.cpp | 789 if ((TrueVal->getValue() - FalseVal->getValue()).isPowerOf2()) in foldSelectICmpAnd() 791 else if ((FalseVal->getValue() - TrueVal->getValue()).isPowerOf2()) in foldSelectICmpAnd() 804 if (!AndRHS->getValue().isPowerOf2() || in foldSelectICmpAnd() 805 (!TrueVal->getValue().isPowerOf2() && in foldSelectICmpAnd() 806 !FalseVal->getValue().isPowerOf2())) in foldSelectICmpAnd()
|
D | InstCombineAndOrXor.cpp | 198 if (AndRHSV.isPowerOf2()) { in OptAndOp() 450 ACst->getValue().isPowerOf2()); in getTypeOfMaskedICmp() 452 BCst->getValue().isPowerOf2()); in getTypeOfMaskedICmp() 555 if (!C->getValue().isPowerOf2()) in decomposeBitTestICmp() 562 if (!(C->getValue() + 1).isPowerOf2()) in decomposeBitTestICmp() 907 if ((LHSCC == ICmpInst::ICMP_ULT && LHSCst->getValue().isPowerOf2()) || in FoldAndOfICmps() 1747 if (LAddOpnd == RAddOpnd && DiffCst.isPowerOf2()) { in FoldOrOfICmps() 1763 if (LowRangeDiff.isPowerOf2() && LowRangeDiff == HighRangeDiff && in FoldOrOfICmps() 1899 if (Xor.isPowerOf2()) { in FoldOrOfICmps()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1175 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in foldICmpShrConstConst() 1250 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD() 1503 if (Pred == ICmpInst::ICMP_UGT && *XorC == ~C && (C + 1).isPowerOf2()) in foldICmpXorConstant() 1508 if (Pred == ICmpInst::ICMP_ULT && *XorC == -C && C.isPowerOf2()) in foldICmpXorConstant() 1704 if (Cmp.getOperand(1) == Y && (-C).isPowerOf2()) { in foldICmpAndConstant() 1746 (C + 1).isPowerOf2()) { in foldICmpOrConstant() 1812 bool CIsPowerOf2 = C.isPowerOf2(); in foldICmpShlOne() 2313 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && in foldICmpSubConstant() 2319 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C) in foldICmpSubConstant() 2375 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && (*C2 & (C - 1)) == 0) in foldICmpAddConstant() [all …]
|
/external/swiftshader/third_party/PowerVR_SDK/Tools/ |
D | PVRTDecompress.cpp | 509 static bool isPowerOf2( unsigned int input ) in isPowerOf2() function 546 _ASSERT(isPowerOf2(YSize)); in TwiddleUV() 547 _ASSERT(isPowerOf2(XSize)); in TwiddleUV()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 369 return isNegative() && isPowerOf2(); in isMinSignedValue() 387 bool isPowerOf2() const { in isPowerOf2() function 1570 if (!isPowerOf2()) in exactLogBase2()
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 345 return BitWidth == 1 ? VAL == 1 : isNegative() && isPowerOf2(); in isMinSignedValue() 367 bool isPowerOf2() const { in isPowerOf2() function 1360 if (!isPowerOf2()) in exactLogBase2()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 373 return isNegative() && isPowerOf2(); in isMinSignedValue() 391 bool isPowerOf2() const { in isPowerOf2() function 1548 if (!isPowerOf2()) in exactLogBase2()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 607 if (IndexOffset.isPowerOf2()) { in emitBump() 612 if ((-IndexOffset).isPowerOf2()) { in emitBump()
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 573 if (IndexOffset.isPowerOf2()) { in emitBump() 578 if ((-IndexOffset).isPowerOf2()) { in emitBump()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 362 (CI->getValue().isPowerOf2() || (-CI->getValue()).isPowerOf2())) { in getArithmeticInstrCost()
|