Home
last modified time | relevance | path

Searched refs:isPowerOfTwo (Results 1 – 25 of 27) sorted by relevance

12

/external/guava/guava/src/com/google/common/math/
DDoubleMath.java197 public static boolean isPowerOfTwo(double x) { in isPowerOfTwo() method in DoubleMath
198 return x > 0.0 && isFinite(x) && LongMath.isPowerOfTwo(getSignificand(x)); in isPowerOfTwo()
244 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
250 increment = !isPowerOfTwo(x); in log2()
253 increment = exponent < 0 & !isPowerOfTwo(x); in log2()
256 increment = exponent >= 0 & !isPowerOfTwo(x); in log2()
DBigIntegerMath.java55 public static boolean isPowerOfTwo(BigInteger x) { in isPowerOfTwo() method in BigIntegerMath
74 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2()
81 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2()
DIntMath.java62 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath
91 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
DLongMath.java61 public static boolean isPowerOfTwo(long x) { in isPowerOfTwo() method in LongMath
89 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
/external/guava/guava-tests/benchmark/com/google/common/math/
DDoubleMathBenchmark.java76 @Benchmark int isPowerOfTwo(int reps) { in isPowerOfTwo() method in DoubleMathBenchmark
80 if (DoubleMath.isPowerOfTwo(doubles[j])) { in isPowerOfTwo()
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMath.java53 public static boolean isPowerOfTwo(BigInteger x) { in isPowerOfTwo() method in BigIntegerMath
72 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2()
79 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2()
DLongMath.java56 public static boolean isPowerOfTwo(long x) { in isPowerOfTwo() method in LongMath
84 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
DIntMath.java59 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath
88 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
/external/skia/tests/
DDetermineDomainModeTest.cpp122 bool isPowerOfTwo, in create_proxy() argument
126 int size = isPowerOfTwo ? 128 : 100; in create_proxy()
143 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
144 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
/external/skqp/tests/
DDetermineDomainModeTest.cpp122 bool isPowerOfTwo, in create_proxy() argument
126 int size = isPowerOfTwo ? 128 : 100; in create_proxy()
143 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
144 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DParameters.java60 if (windowSize < 2 || !isPowerOfTwo(windowSize)) { in Builder()
346 private static final boolean isPowerOfTwo(int x) {
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMathTest.java53 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); in testIsPowerOfTwo()
99 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
DLongMathTest.java93 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
DIntMathTest.java91 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
/external/guava/guava-tests/test/com/google/common/math/
DDoubleMathTest.java389 boolean isPowerOfTwo = StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x;
393 assertTrue(isPowerOfTwo);
395 assertFalse(isPowerOfTwo);
428 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i)));
437 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
DBigIntegerMathTest.java65 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); in testIsPowerOfTwo()
111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
DIntMathTest.java117 assertEquals(expected, IntMath.isPowerOfTwo(x)); in testIsPowerOfTwo()
154 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
DLongMathTest.java170 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo()
208 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorFFT.h221 const bool is_power_of_two = isPowerOfTwo(line_len);
299 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static bool isPowerOfTwo(Index x) {
319 eigen_assert(isPowerOfTwo(line_len));
391 eigen_assert(isPowerOfTwo(n));
519 eigen_assert(isPowerOfTwo(n));
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DValueTracking.h52 bool isPowerOfTwo(Value *V, const TargetData *TD = 0, unsigned Depth = 0);
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp715 bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, unsigned Depth) { in isPowerOfTwo() function in llvm
735 return isPowerOfTwo(ZI->getOperand(0), TD, Depth); in isPowerOfTwo()
738 return isPowerOfTwo(SI->getTrueValue(), TD, Depth) && in isPowerOfTwo()
739 isPowerOfTwo(SI->getFalseValue(), TD, Depth); in isPowerOfTwo()
748 return isPowerOfTwo(PEO->getOperand(0), TD, Depth); in isPowerOfTwo()
849 if (XKnownNonNegative && isPowerOfTwo(Y, TD, Depth)) in isKnownNonZero()
851 if (YKnownNonNegative && isPowerOfTwo(X, TD, Depth)) in isKnownNonZero()
/external/clang/include/clang/AST/
DCharUnits.h129 bool isPowerOfTwo() const { in isPowerOfTwo() function
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp40 isPowerOfTwo(PowerOf2, IC.getTargetData())) { in simplifyValueKnownNonZero()
49 isPowerOfTwo(I->getOperand(0), IC.getTargetData())) { in simplifyValueKnownNonZero()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiObjectManagementTests.cpp303 bool isPowerOfTwo (T value) in isPowerOfTwo() function
312 DE_ASSERT(isPowerOfTwo(align)); in alignToPowerOfTwo()
/external/clang/lib/CodeGen/
DCGObjC.cpp764 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()

12