/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()
|
D | InstCombineAddSub.cpp | 122 if (RHSVal.isPowerOf2()) in visitAdd() 124 else if (XorRHS->getValue().isPowerOf2()) in visitAdd()
|
D | InstCombineCasts.cpp | 542 if ((Op1CV == 0 || Op1CV.isPowerOf2()) && in transformZExtICmp() 552 if (KnownZeroMask.isPowerOf2()) { // Exactly 1 possible 1? in transformZExtICmp() 915 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp() 922 if (KnownZeroMask.isPowerOf2()) { in transformSExtICmp()
|
/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()
|
D | InstCombineAddSub.cpp | 1069 if (RHSVal.isPowerOf2()) in visitAdd() 1071 else if (XorRHS->getValue().isPowerOf2()) in visitAdd() 1089 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) { in visitAdd() 1560 if ((IntVal + 1).isPowerOf2()) { in visitSub()
|
D | InstCombineMulDivRem.cpp | 125 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) in getLogBase2Vector() 218 if (match(C1, m_APInt(IVal)) && IVal->isPowerOf2()) in visitMul() 250 if (Val.isNegative() && PosVal.isPowerOf2()) { in visitMul() 1149 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) { in visitSDiv()
|
/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/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/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/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/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 573 if (IndexOffset.isPowerOf2()) { in emitBump() 578 if ((-IndexOffset).isPowerOf2()) { in emitBump()
|
/external/llvm/lib/Analysis/ |
D | Loads.cpp | 41 assert(Alignment.isPowerOf2() && "must be a power of 2!"); in isAligned()
|