Home
last modified time | relevance | path

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

123

/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/vulkan-validation-layers/libs/glm/gtx/
Dbit.inl79 // isPowerOfTwo
81 GLM_FUNC_QUALIFIER bool isPowerOfTwo(genType const & Value) function
94 GLM_FUNC_QUALIFIER detail::tvec2<bool, P> isPowerOfTwo function
100 isPowerOfTwo(value[0]),
101 isPowerOfTwo(value[1]));
105 GLM_FUNC_QUALIFIER detail::tvec3<bool, P> isPowerOfTwo function
111 isPowerOfTwo(value[0]),
112 isPowerOfTwo(value[1]),
113 isPowerOfTwo(value[2]));
117 GLM_FUNC_QUALIFIER detail::tvec4<bool, P> isPowerOfTwo function
[all …]
Dbit.hpp69 GLM_FUNC_DECL bool isPowerOfTwo(genType const & value);
/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/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
DETC1.java90 if (!MathUtils.isPowerOfTwo(width) || !MathUtils.isPowerOfTwo(height)) { in checkNPOT()
/external/guava/guava-tests/test/com/google/common/math/
DDoubleMathTest.java389 boolean isPowerOfTwo = StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x;
393 assertTrue(isPowerOfTwo);
395 assertFalse(isPowerOfTwo);
428 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i)));
437 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
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()
DLongMathTest.java170 assertEquals(expected, LongMath.isPowerOfTwo(x)); in testIsPowerOfTwo()
208 boolean isPowerOf2 = LongMath.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/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DCameraInputController.java158 multiTouch = !MathUtils.isPowerOfTwo(touched); in touchDown()
172 multiTouch = !MathUtils.isPowerOfTwo(touched); in touchUp()
/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/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/ktx/
DKTXProcessor.java172 if (!MathUtils.isPowerOfTwo(texWidth) || !MathUtils.isPowerOfTwo(texHeight)) in create()
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DMathUtils.java209 static public boolean isPowerOfTwo (int value) { in isPowerOfTwo() method in MathUtils
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/
DMathUtils.java255 public final static boolean isPowerOfTwo(final int x) { in isPowerOfTwo() method in MathUtils

123