/external/guava/guava-tests/benchmark/com/google/common/math/ |
H A D | DoubleMathBenchmark.java | 76 @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 D | DoubleMath.java | 197 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 D | BigIntegerMath.java | 55 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 D | IntMath.java | 62 public static boolean isPowerOfTwo(int x) { method in class:IntMath 91 checkRoundingUnnecessary(isPowerOfTwo(x));
|
H A D | LongMath.java | 61 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 D | BigIntegerMath.java | 53 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 D | IntMath.java | 59 public static boolean isPowerOfTwo(int x) { method in class:IntMath 88 checkRoundingUnnecessary(isPowerOfTwo(x));
|
H A D | LongMath.java | 56 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 D | BigIntegerMathTest.java | 53 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); 95 // Relies on the correctness of isPowerOfTwo(BigInteger). 99 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
|
H A D | LongMathTest.java | 89 /* Relies on the correctness of isPowerOfTwo(long). */ 93 boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
|
H A D | IntMathTest.java | 87 // Relies on the correctness of isPowerOfTwo(int). 91 boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
|
/external/jmonkeyengine/engine/src/android/com/jme3/renderer/android/ |
H A D | TextureUtil.java | 91 if (!FastMath.isPowerOfTwo(width) || !FastMath.isPowerOfTwo(height))
|
/external/clang/include/clang/AST/ |
H A D | CharUnits.h | 127 /// 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 D | MidpointDisplacementHeightMap.java | 78 if (size < 0 || !FastMath.isPowerOfTwo(size - 1)) {
|
/external/guava/guava-tests/test/com/google/common/math/ |
H A D | BigIntegerMathTest.java | 65 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); 107 // Relies on the correctness of isPowerOfTwo(BigInteger). 111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
|
H A D | DoubleMathTest.java | 392 @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 D | IntMathTest.java | 117 assertEquals(expected, IntMath.isPowerOfTwo(x)); 150 // Relies on the correctness of isPowerOfTwo(int). 154 boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
|
H A D | LongMathTest.java | 170 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 D | LwjglGL1Renderer.java | 736 if (!FastMath.isPowerOfTwo(img.getWidth()) 737 || !FastMath.isPowerOfTwo(img.getHeight())) {
|
H A D | LwjglRenderer.java | 1827 if (!FastMath.isPowerOfTwo(img.getWidth())
1828 || !FastMath.isPowerOfTwo(img.getHeight())) {
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
H A D | FastMath.java | 86 public static boolean isPowerOfTwo(int number) { method in class:FastMath
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
H A D | TerrainQuad.java | 210 if (!FastMath.isPowerOfTwo(quadSize - 1)) {
|
/external/clang/lib/CodeGen/ |
H A D | CGObjC.cpp | 705 if (!IvarSize.isPowerOfTwo()) {
|
/external/owasp/sanitizer/distrib/lib/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |
/external/owasp/sanitizer/lib/guava-libraries/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |