/external/guava/guava/src/com/google/common/math/ |
D | DoubleMath.java | 197 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()
|
D | BigIntegerMath.java | 55 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()
|
D | IntMath.java | 62 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath 91 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
D | LongMath.java | 61 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/ |
D | DoubleMathBenchmark.java | 76 @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/ |
D | BigIntegerMath.java | 53 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()
|
D | LongMath.java | 56 public static boolean isPowerOfTwo(long x) { in isPowerOfTwo() method in LongMath 84 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
D | IntMath.java | 59 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath 88 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
/external/skia/tests/ |
D | DetermineDomainModeTest.cpp | 122 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/ |
D | DetermineDomainModeTest.cpp | 122 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/ |
D | Parameters.java | 60 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/ |
D | BigIntegerMathTest.java | 53 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 99 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
|
D | LongMathTest.java | 93 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
|
D | IntMathTest.java | 91 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 389 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));
|
D | BigIntegerMathTest.java | 65 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
|
D | IntMathTest.java | 117 assertEquals(expected, IntMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 154 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
|
D | LongMathTest.java | 170 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 208 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorFFT.h | 221 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/ |
D | ValueTracking.h | 52 bool isPowerOfTwo(Value *V, const TargetData *TD = 0, unsigned Depth = 0);
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ValueTracking.cpp | 715 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/ |
D | CharUnits.h | 129 bool isPowerOfTwo() const { in isPowerOfTwo() function
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 40 isPowerOfTwo(PowerOf2, IC.getTargetData())) { in simplifyValueKnownNonZero() 49 isPowerOfTwo(I->getOperand(0), IC.getTargetData())) { in simplifyValueKnownNonZero()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiObjectManagementTests.cpp | 303 bool isPowerOfTwo (T value) in isPowerOfTwo() function 312 DE_ASSERT(isPowerOfTwo(align)); in alignToPowerOfTwo()
|
/external/clang/lib/CodeGen/ |
D | CGObjC.cpp | 764 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
|