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

12

/external/guava/guava-tests/benchmark/com/google/common/math/
H A DDoubleMathBenchmark.java76 @Benchmark int isPowerOfTwo(int reps) { method in class:DoubleMathBenchmark
80 if (DoubleMath.isPowerOfTwo(doubles[j])) {
/external/guava/guava/src/com/google/common/math/
H A DDoubleMath.java197 public static boolean isPowerOfTwo(double x) { method in class:DoubleMath
198 return x > 0.0 && isFinite(x) && LongMath.isPowerOfTwo(getSignificand(x));
244 checkRoundingUnnecessary(isPowerOfTwo(x));
250 increment = !isPowerOfTwo(x);
253 increment = exponent < 0 & !isPowerOfTwo(x);
256 increment = exponent >= 0 & !isPowerOfTwo(x);
H A DBigIntegerMath.java55 public static boolean isPowerOfTwo(BigInteger x) { method in class:BigIntegerMath
74 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through
81 return isPowerOfTwo(x) ? logFloor : logFloor + 1;
H A DIntMath.java62 public static boolean isPowerOfTwo(int x) { method in class:IntMath
91 checkRoundingUnnecessary(isPowerOfTwo(x));
H A DLongMath.java61 public static boolean isPowerOfTwo(long x) { method in class:LongMath
89 checkRoundingUnnecessary(isPowerOfTwo(x));
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
H A DBigIntegerMath.java53 public static boolean isPowerOfTwo(BigInteger x) { method in class:BigIntegerMath
72 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through
79 return isPowerOfTwo(x) ? logFloor : logFloor + 1;
H A DIntMath.java59 public static boolean isPowerOfTwo(int x) { method in class:IntMath
88 checkRoundingUnnecessary(isPowerOfTwo(x));
H A DLongMath.java56 public static boolean isPowerOfTwo(long x) { method in class:LongMath
84 checkRoundingUnnecessary(isPowerOfTwo(x));
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
H A DBigIntegerMathTest.java53 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
95 // Relies on the correctness of isPowerOfTwo(BigInteger).
99 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
H A DLongMathTest.java89 /* Relies on the correctness of isPowerOfTwo(long). */
93 boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
H A DIntMathTest.java87 // Relies on the correctness of isPowerOfTwo(int).
91 boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
/external/jmonkeyengine/engine/src/android/com/jme3/renderer/android/
H A DTextureUtil.java91 if (!FastMath.isPowerOfTwo(width) || !FastMath.isPowerOfTwo(height))
/external/clang/include/clang/AST/
H A DCharUnits.h127 /// isPowerOfTwo - Test whether the quantity is a power of two.
129 bool isPowerOfTwo() const { function in class:clang::CharUnits
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
H A DMidpointDisplacementHeightMap.java78 if (size < 0 || !FastMath.isPowerOfTwo(size - 1)) {
/external/guava/guava-tests/test/com/google/common/math/
H A DBigIntegerMathTest.java65 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
107 // Relies on the correctness of isPowerOfTwo(BigInteger).
111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
H A DDoubleMathTest.java392 @GwtIncompatible("DoubleMath.isPowerOfTwo, DoubleMath.log2(double, RoundingMode), StrictMath")
395 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i)));
399 @GwtIncompatible("DoubleMath.isPowerOfTwo, DoubleMath.log2(double, RoundingMode), StrictMath")
404 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
H A DIntMathTest.java117 assertEquals(expected, IntMath.isPowerOfTwo(x));
150 // Relies on the correctness of isPowerOfTwo(int).
154 boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
H A DLongMathTest.java170 assertEquals(expected, LongMath.isPowerOfTwo(x));
204 /* Relies on the correctness of isPowerOfTwo(long). */
208 boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/renderer/lwjgl/
H A DLwjglGL1Renderer.java736 if (!FastMath.isPowerOfTwo(img.getWidth())
737 || !FastMath.isPowerOfTwo(img.getHeight())) {
H A DLwjglRenderer.java1827 if (!FastMath.isPowerOfTwo(img.getWidth())
1828 || !FastMath.isPowerOfTwo(img.getHeight())) {
/external/jmonkeyengine/engine/src/core/com/jme3/math/
H A DFastMath.java86 public static boolean isPowerOfTwo(int number) { method in class:FastMath
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
H A DTerrainQuad.java210 if (!FastMath.isPowerOfTwo(quadSize - 1)) {
/external/clang/lib/CodeGen/
H A DCGObjC.cpp705 if (!IvarSize.isPowerOfTwo()) {
/external/owasp/sanitizer/distrib/lib/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/owasp/sanitizer/lib/guava-libraries/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...

Completed in 523 milliseconds

12