/external/guava/guava/src/com/google/common/math/ |
D | DoubleMath.java | 199 public static boolean isPowerOfTwo(double x) { in isPowerOfTwo() method in DoubleMath 249 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2() 255 increment = !isPowerOfTwo(x); in log2() 258 increment = exponent < 0 & !isPowerOfTwo(x); in log2() 261 increment = exponent >= 0 & !isPowerOfTwo(x); in log2()
|
D | BigIntegerMath.java | 75 public static boolean isPowerOfTwo(BigInteger x) { in isPowerOfTwo() method in BigIntegerMath 94 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2() 101 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2()
|
D | IntMath.java | 93 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath 122 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
/external/guava/android/guava/src/com/google/common/math/ |
D | DoubleMath.java | 199 public static boolean isPowerOfTwo(double x) { in isPowerOfTwo() method in DoubleMath 249 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2() 255 increment = !isPowerOfTwo(x); in log2() 258 increment = exponent < 0 & !isPowerOfTwo(x); in log2() 261 increment = exponent >= 0 & !isPowerOfTwo(x); in log2()
|
D | BigIntegerMath.java | 75 public static boolean isPowerOfTwo(BigInteger x) { in isPowerOfTwo() method in BigIntegerMath 94 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2() 101 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2()
|
D | IntMath.java | 93 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath 122 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
D | LongMath.java | 96 public static boolean isPowerOfTwo(long x) { in isPowerOfTwo() method in LongMath 124 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
/external/scudo/standalone/ |
D | wrappers_c_checks.h | 34 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkAlignedAllocAlignmentAndSize() 41 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkPosixMemalignAlignment()
|
D | common.h | 51 inline bool isPowerOfTwo(uptr X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function 60 if (isPowerOfTwo(Size)) in roundUpToPowerOfTwo() 74 DCHECK(isPowerOfTwo(X)); in getLog2()
|
D | wrappers_c.inc | 80 if (UNLIKELY(!scudo::isPowerOfTwo(alignment))) 84 if (UNLIKELY(!scudo::isPowerOfTwo(alignment))) {
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | DoubleMathBenchmark.java | 80 int isPowerOfTwo(int reps) { in isPowerOfTwo() method in DoubleMathBenchmark 84 if (DoubleMath.isPowerOfTwo(doubles[j])) { in isPowerOfTwo()
|
/external/guava/android/guava-tests/benchmark/com/google/common/math/ |
D | DoubleMathBenchmark.java | 80 int isPowerOfTwo(int reps) { in isPowerOfTwo() method in DoubleMathBenchmark 84 if (DoubleMath.isPowerOfTwo(doubles[j])) { in isPowerOfTwo()
|
/external/skia/tests/ |
D | DetermineDomainModeTest.cpp | 124 bool isPowerOfTwo, in create_proxy() argument 130 int size = isPowerOfTwo ? 128 : 100; in create_proxy() 142 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy() 143 (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/android/guava-tests/test/com/google/common/math/ |
D | BigIntegerMathTest.java | 56 assertTrue(BigIntegerMath.isPowerOfTwo(result)); in testCeilingPowerOfTwo() 65 assertTrue(BigIntegerMath.isPowerOfTwo(result)); 119 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); 167 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
|
D | DoubleMathTest.java | 410 boolean isPowerOfTwo = StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x; 414 assertTrue(isPowerOfTwo); 416 assertFalse(isPowerOfTwo); 451 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i))); 463 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
|
D | IntMathTest.java | 48 assertTrue(IntMath.isPowerOfTwo(IntMath.MAX_SIGNED_POWER_OF_TWO)); in testMaxSignedPowerOfTwo() 52 assertFalse(IntMath.isPowerOfTwo((int) value)); in testMaxSignedPowerOfTwo() 188 assertEquals(expected, IntMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 227 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
|
D | LongMathTest.java | 51 assertTrue(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO)); in testMaxSignedPowerOfTwo() 52 assertFalse(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO * 2)); in testMaxSignedPowerOfTwo() 244 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 284 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | BigIntegerMathTest.java | 56 assertTrue(BigIntegerMath.isPowerOfTwo(result)); in testCeilingPowerOfTwo() 65 assertTrue(BigIntegerMath.isPowerOfTwo(result)); 119 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); 167 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
|
D | DoubleMathTest.java | 410 boolean isPowerOfTwo = StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x; 414 assertTrue(isPowerOfTwo); 416 assertFalse(isPowerOfTwo); 451 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i))); 463 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
|
D | IntMathTest.java | 48 assertTrue(IntMath.isPowerOfTwo(IntMath.MAX_SIGNED_POWER_OF_TWO)); in testMaxSignedPowerOfTwo() 52 assertFalse(IntMath.isPowerOfTwo((int) value)); in testMaxSignedPowerOfTwo() 188 assertEquals(expected, IntMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 227 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
|
D | LongMathTest.java | 51 assertTrue(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO)); in testMaxSignedPowerOfTwo() 52 assertFalse(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO * 2)); in testMaxSignedPowerOfTwo() 244 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 284 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/clang/include/clang/AST/ |
D | CharUnits.h | 129 bool isPowerOfTwo() const { in isPowerOfTwo() function
|