/external/scudo/standalone/ |
D | common.h | 30 inline constexpr bool isPowerOfTwo(uptr X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function 33 DCHECK(isPowerOfTwo(Boundary)); in roundUp() 41 DCHECK(isPowerOfTwo(Boundary)); in roundDown() 49 DCHECK(isPowerOfTwo(Alignment)); in isAligned() 73 if (isPowerOfTwo(Size)) in roundUpPowerOfTwo() 87 DCHECK(isPowerOfTwo(X)); in getLog2()
|
D | wrappers_c_checks.h | 34 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkAlignedAllocAlignmentAndSize() 41 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkPosixMemalignAlignment()
|
/external/guava/android/guava/src/com/google/common/math/ |
D | DoubleMath.java | 200 public static boolean isPowerOfTwo(double x) { in isPowerOfTwo() method in DoubleMath 250 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2() 256 increment = !isPowerOfTwo(x); in log2() 259 increment = exponent < 0 & !isPowerOfTwo(x); in log2() 262 increment = exponent >= 0 & !isPowerOfTwo(x); in log2()
|
D | BigIntegerMath.java | 78 public static boolean isPowerOfTwo(BigInteger x) { in isPowerOfTwo() method in BigIntegerMath 97 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2() 104 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2()
|
D | IntMath.java | 94 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath 123 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
/external/guava/guava/src/com/google/common/math/ |
D | DoubleMath.java | 200 public static boolean isPowerOfTwo(double x) { in isPowerOfTwo() method in DoubleMath 250 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2() 256 increment = !isPowerOfTwo(x); in log2() 259 increment = exponent < 0 & !isPowerOfTwo(x); in log2() 262 increment = exponent >= 0 & !isPowerOfTwo(x); in log2()
|
D | BigIntegerMath.java | 78 public static boolean isPowerOfTwo(BigInteger x) { in isPowerOfTwo() method in BigIntegerMath 97 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2() 104 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2()
|
D | IntMath.java | 94 public static boolean isPowerOfTwo(int x) { in isPowerOfTwo() method in IntMath 123 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
|
/external/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | bit.inl | 49 return isPowerOfTwo(value) ? value : highestBitValue(value) << 1; 64 return isPowerOfTwo(value) ? value : highestBitValue(value); 79 if(isPowerOfTwo(value))
|
/external/oboe/samples/RhythmGame/src/main/cpp/utils/ |
D | LockFreeQueue.h | 61 static constexpr bool isPowerOfTwo(uint32_t n) { return (n & (n - 1)) == 0; } in isPowerOfTwo() function 62 static_assert(isPowerOfTwo(CAPACITY), "Capacity must be a power of 2");
|
/external/gwp_asan/gwp_asan/ |
D | guarded_pool_allocator.cpp | 38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function 171 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in getRequiredBackingSize() 182 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignUp() 192 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignDown() 216 if (!isPowerOfTwo(Alignment) || Alignment > State.maximumAllocationSize() || in allocate()
|
/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/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/oboe/samples/RhythmGame/third_party/glm/gtc/ |
D | round.hpp | 37 GLM_FUNC_DECL bool isPowerOfTwo(genIUType Value); 43 GLM_FUNC_DECL vecType<bool, P> isPowerOfTwo(vecType<T, P> const & value);
|
D | round.inl | 213 // isPowerOfTwo 216 GLM_FUNC_QUALIFIER bool isPowerOfTwo(genType Value) function 223 GLM_FUNC_QUALIFIER vecType<bool, P> isPowerOfTwo(vecType<T, P> const & Value) function 250 return isPowerOfTwo(value) ? value : static_cast<genType>(1) << findMSB(value); 265 if(isPowerOfTwo(value))
|
/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/pffft/ |
D | test_pffft.cpp | 70 assert(Fft::isPowerOfTwo(N)); in Ttest() 312 result = pffft::Fft<float>::isPowerOfTwo(inp_power_of_two[k]); in main() 314 result = pffft::Fft<double>::isPowerOfTwo(inp_power_of_two[k]); in main()
|
/external/guava/guava-tests/test/com/google/common/math/ |
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() 189 assertEquals(expected, IntMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 228 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
|
D | BigIntegerMathTest.java | 62 assertTrue(BigIntegerMath.isPowerOfTwo(result)); in testCeilingPowerOfTwo() 71 assertTrue(BigIntegerMath.isPowerOfTwo(result)); 125 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); 173 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
|
D | LongMathTest.java | 53 assertTrue(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO)); in testMaxSignedPowerOfTwo() 54 assertFalse(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO * 2)); in testMaxSignedPowerOfTwo() 246 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 286 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
|
/external/guava/android/guava-tests/test/com/google/common/math/ |
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() 189 assertEquals(expected, IntMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 228 boolean isPowerOf2 = IntMath.isPowerOfTwo(x); in testLog2Exact()
|
D | BigIntegerMathTest.java | 62 assertTrue(BigIntegerMath.isPowerOfTwo(result)); in testCeilingPowerOfTwo() 71 assertTrue(BigIntegerMath.isPowerOfTwo(result)); 125 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); 173 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x); in testLog2Exact()
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorFFT.h | 230 const bool is_power_of_two = isPowerOfTwo(line_len); 320 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static bool isPowerOfTwo(Index x) { 340 eigen_assert(isPowerOfTwo(line_len)); 412 eigen_assert(isPowerOfTwo(n)); 540 eigen_assert(isPowerOfTwo(n));
|