/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | CmpInstAnalysis.cpp | 108 if (!C->isPowerOf2()) in decomposeBitTestICmp() 115 if (!(*C + 1).isPowerOf2()) in decomposeBitTestICmp() 122 if (!(*C + 1).isPowerOf2()) in decomposeBitTestICmp() 129 if (!C->isPowerOf2()) in decomposeBitTestICmp()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | CmpInstAnalysis.cpp | 108 if (!C->isPowerOf2()) in decomposeBitTestICmp() 115 if (!(*C + 1).isPowerOf2()) in decomposeBitTestICmp() 122 if (!(*C + 1).isPowerOf2()) in decomposeBitTestICmp() 129 if (!C->isPowerOf2()) in decomposeBitTestICmp()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | Sanitizers.h | 74 bool isPowerOf2() const { in isPowerOf2() function 154 assert(K.isPowerOf2() && "Has to be a single sanitizer."); in has() 163 assert(K.isPowerOf2() && "Has to be a single sanitizer."); in set()
|
/external/llvm-project/llvm/lib/Target/AArch64/GISel/ |
D | AArch64PostLegalizerCombiner.cpp | 179 if (SCVMinus1.isPowerOf2()) { in matchAArch64MulConstCombine() 182 } else if (CVPlus1.isPowerOf2()) { in matchAArch64MulConstCombine() 192 if (CVNegPlus1.isPowerOf2()) { in matchAArch64MulConstCombine() 196 } else if (CVNegMinus1.isPowerOf2()) { in matchAArch64MulConstCombine()
|
/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/llvm-project/mlir/include/mlir/ExecutionEngine/ |
D | CRunnerUtils.h | 41 constexpr bool isPowerOf2(int N) { return (!(N & (N - 1))); } in isPowerOf2() function 44 return (N <= 1) ? 1 : (isPowerOf2(N) ? N : (2 * nextPowerOf2((N + 1) / 2))); in nextPowerOf2() 98 : public detail::Vector1D<T, Dim, detail::isPowerOf2(sizeof(T[Dim]))> {};
|
/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/llvm-project/clang/lib/CodeGen/ |
D | SwiftCallingConv.cpp | 26 static bool isPowerOf2(unsigned n) { in isPowerOf2() function 422 assert(isPowerOf2(unitSize.getQuantity())); in getOffsetAtStartOfUnit() 664 if (!isPowerOf2(size)) { in getNaturalAlignment() 712 if (numElts >= 4 && isPowerOf2(numElts)) { in splitLegalVectorType() 776 if (numElts > 2 && !isPowerOf2(numElts) && in legalizeVectorType()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | IntMathTest.java | 227 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact() 230 assertTrue(isPowerOf2); in testLog2Exact() 232 assertFalse(isPowerOf2); in testLog2Exact()
|
D | BigIntegerMathTest.java | 173 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact() 176 assertTrue(isPowerOf2); in testLog2Exact() 178 assertFalse(isPowerOf2); in testLog2Exact()
|
D | LongMathTest.java | 286 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact() 289 assertTrue(isPowerOf2); in testLog2Exact() 291 assertFalse(isPowerOf2); in testLog2Exact()
|
/external/guava/android/guava-tests/test/com/google/common/math/ |
D | IntMathTest.java | 227 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact() 230 assertTrue(isPowerOf2); in testLog2Exact() 232 assertFalse(isPowerOf2); in testLog2Exact()
|
D | BigIntegerMathTest.java | 173 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact() 176 assertTrue(isPowerOf2); in testLog2Exact() 178 assertFalse(isPowerOf2); in testLog2Exact()
|
D | LongMathTest.java | 286 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact() 289 assertTrue(isPowerOf2); in testLog2Exact() 291 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()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1197 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in foldICmpShrConstConst() 1272 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD() 1632 if (*XorC == ~C && (C + 1).isPowerOf2()) in foldICmpXorConstant() 1635 if (*XorC == C && (C + 1).isPowerOf2()) in foldICmpXorConstant() 1640 if (*XorC == -C && C.isPowerOf2()) in foldICmpXorConstant() 1644 if (*XorC == C && (-C).isPowerOf2()) in foldICmpXorConstant() 1770 if ((~(*C2) + 1).isPowerOf2()) { in foldICmpAndConstConst() 1873 if (Cmp.getOperand(1) == Y && (-C).isPowerOf2()) { in foldICmpAndConstant() 1916 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant() 2011 bool CIsPowerOf2 = C.isPowerOf2(); in foldICmpShlOne() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1195 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in foldICmpShrConstConst() 1270 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD() 1613 if (*XorC == ~C && (C + 1).isPowerOf2()) in foldICmpXorConstant() 1616 if (*XorC == C && (C + 1).isPowerOf2()) in foldICmpXorConstant() 1621 if (*XorC == -C && C.isPowerOf2()) in foldICmpXorConstant() 1625 if (*XorC == C && (-C).isPowerOf2()) in foldICmpXorConstant() 1748 if ((~(*C2) + 1).isPowerOf2()) { in foldICmpAndConstConst() 1852 if (Cmp.getOperand(1) == Y && (-C).isPowerOf2()) { in foldICmpAndConstant() 1895 if ((C + 1).isPowerOf2()) { in foldICmpOrConstant() 1969 bool CIsPowerOf2 = C.isPowerOf2(); in foldICmpShlOne() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | KnownBits.cpp | 393 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in urem() 414 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in srem()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SuspiciousEnumUsageCheck.cpp | 66 if (Val.isPowerOf2() || !Val.getBoolValue()) in isNonPowerOf2NorNullLiteral()
|
/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/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | MagicNumbersCheck.cpp | 177 if (IgnorePowersOf2IntegerValues && IntValue.isPowerOf2()) in isIgnoredValue()
|
/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()
|