/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/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/jmonkeyengine/engine/src/android/com/jme3/renderer/android/ |
D | TextureUtil.java | 91 if (!FastMath.isPowerOfTwo(width) || !FastMath.isPowerOfTwo(height)) in uploadTextureBitmap()
|
/external/clang/include/clang/AST/ |
D | CharUnits.h | 129 bool isPowerOfTwo() const { in isPowerOfTwo() function
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
D | MidpointDisplacementHeightMap.java | 78 if (size < 0 || !FastMath.isPowerOfTwo(size - 1)) { in MidpointDisplacementHeightMap()
|
/external/guava/guava-tests/test/com/google/common/math/ |
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 | DoubleMathTest.java | 395 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i))); 404 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
|
D | LongMathTest.java | 170 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo() 208 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
|
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/renderer/lwjgl/ |
D | LwjglGL1Renderer.java | 736 if (!FastMath.isPowerOfTwo(img.getWidth()) in updateTexImageData() 737 || !FastMath.isPowerOfTwo(img.getHeight())) { in updateTexImageData()
|
D | LwjglRenderer.java | 1827 if (!FastMath.isPowerOfTwo(img.getWidth()) in updateTexImageData() 1828 || !FastMath.isPowerOfTwo(img.getHeight())) { in updateTexImageData()
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | FastMath.java | 86 public static boolean isPowerOfTwo(int number) { in isPowerOfTwo() method in FastMath
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
D | TerrainQuad.java | 210 if (!FastMath.isPowerOfTwo(quadSize - 1)) {
|
/external/clang/lib/CodeGen/ |
D | CGObjC.cpp | 705 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 6458 if (Size.isPowerOfTwo()) { in VisitCallExpr()
|
/external/v8/tools/profviz/ |
D | gnuplot-4.6.3-emscripten.js | 204 } else if (isNumber(quantum) && isPowerOfTwo(quantum)) {
|