Home
last modified time | relevance | path

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

/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/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/jmonkeyengine/engine/src/android/com/jme3/renderer/android/
DTextureUtil.java91 if (!FastMath.isPowerOfTwo(width) || !FastMath.isPowerOfTwo(height)) in uploadTextureBitmap()
/external/clang/include/clang/AST/
DCharUnits.h129 bool isPowerOfTwo() const { in isPowerOfTwo() function
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DMidpointDisplacementHeightMap.java78 if (size < 0 || !FastMath.isPowerOfTwo(size - 1)) { in MidpointDisplacementHeightMap()
/external/guava/guava-tests/test/com/google/common/math/
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()
DDoubleMathTest.java395 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i)));
404 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
DLongMathTest.java170 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo()
208 boolean isPowerOf2 = LongMath.isPowerOfTwo(x); in testLog2Exact()
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/renderer/lwjgl/
DLwjglGL1Renderer.java736 if (!FastMath.isPowerOfTwo(img.getWidth()) in updateTexImageData()
737 || !FastMath.isPowerOfTwo(img.getHeight())) { in updateTexImageData()
DLwjglRenderer.java1827 if (!FastMath.isPowerOfTwo(img.getWidth()) in updateTexImageData()
1828 || !FastMath.isPowerOfTwo(img.getHeight())) { in updateTexImageData()
/external/jmonkeyengine/engine/src/core/com/jme3/math/
DFastMath.java86 public static boolean isPowerOfTwo(int number) { in isPowerOfTwo() method in FastMath
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DTerrainQuad.java210 if (!FastMath.isPowerOfTwo(quadSize - 1)) {
/external/clang/lib/CodeGen/
DCGObjC.cpp705 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
/external/clang/lib/AST/
DExprConstant.cpp6458 if (Size.isPowerOfTwo()) { in VisitCallExpr()
/external/v8/tools/profviz/
Dgnuplot-4.6.3-emscripten.js204 } else if (isNumber(quantum) && isPowerOfTwo(quantum)) {