HomeSort by relevance Sort by last modified time
    Searched refs:isPowerOfTwo (Results 1 - 25 of 90) sorted by null

1 2 3 4

  /external/guava/guava-tests/benchmark/com/google/common/math/
DoubleMathBenchmark.java 76 @Benchmark int isPowerOfTwo(int reps) {
80 if (DoubleMath.isPowerOfTwo(doubles[j])) {
  /external/guava/guava/src/com/google/common/math/
DoubleMath.java 197 public static boolean isPowerOfTwo(double x) {
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);
BigIntegerMath.java 55 public static boolean isPowerOfTwo(BigInteger x) {
74 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through
81 return isPowerOfTwo(x) ? logFloor : logFloor + 1;
IntMath.java 62 public static boolean isPowerOfTwo(int x) {
91 checkRoundingUnnecessary(isPowerOfTwo(x));
LongMath.java 61 public static boolean isPowerOfTwo(long x) {
89 checkRoundingUnnecessary(isPowerOfTwo(x));
  /external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
BigIntegerMath.java 53 public static boolean isPowerOfTwo(BigInteger x) {
72 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through
79 return isPowerOfTwo(x) ? logFloor : logFloor + 1;
IntMath.java 59 public static boolean isPowerOfTwo(int x) {
88 checkRoundingUnnecessary(isPowerOfTwo(x));
LongMath.java 56 public static boolean isPowerOfTwo(long x) {
84 checkRoundingUnnecessary(isPowerOfTwo(x));
  /external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
BigIntegerMathTest.java 53 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
95 // Relies on the correctness of isPowerOfTwo(BigInteger).
99 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
LongMathTest.java 89 /* Relies on the correctness of isPowerOfTwo(long). */
93 boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
IntMathTest.java 87 // Relies on the correctness of isPowerOfTwo(int).
91 boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
CameraInputController.java 158 multiTouch = !MathUtils.isPowerOfTwo(touched);
172 multiTouch = !MathUtils.isPowerOfTwo(touched);
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
ETC1.java 90 if (!MathUtils.isPowerOfTwo(width) || !MathUtils.isPowerOfTwo(height)) {
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
BootSector.java 295 private static boolean isPowerOfTwo(int n) {
326 if (!isPowerOfTwo(v)) throw new IllegalArgumentException(
  /frameworks/base/libs/hwui/
SkiaShader.cpp 51 static inline bool isPowerOfTwo(unsigned int n) {
227 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))
  /external/clang/include/clang/AST/
CharUnits.h 127 /// isPowerOfTwo - Test whether the quantity is a power of two.
129 bool isPowerOfTwo() const {
  /external/vulkan-validation-layers/libs/glm/gtx/
bit.hpp 69 GLM_FUNC_DECL bool isPowerOfTwo(genType const & value);
  /frameworks/av/cmds/screenrecord/
TextRenderer.cpp 62 static bool isPowerOfTwo(uint32_t val) {
101 if (!isPowerOfTwo(FontBitmap::width)) {
  /external/guava/guava-tests/test/com/google/common/math/
DoubleMathTest.java 389 boolean isPowerOfTwo = StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x;
393 assertTrue(isPowerOfTwo);
395 assertFalse(isPowerOfTwo);
425 @GwtIncompatible("DoubleMath.isPowerOfTwo, DoubleMath.log2(double, RoundingMode), StrictMath")
428 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i)));
432 @GwtIncompatible("DoubleMath.isPowerOfTwo, DoubleMath.log2(double, RoundingMode), StrictMath")
437 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
BigIntegerMathTest.java 65 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
107 // Relies on the correctness of isPowerOfTwo(BigInteger).
111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
IntMathTest.java 117 assertEquals(expected, IntMath.isPowerOfTwo(x));
150 // Relies on the correctness of isPowerOfTwo(int).
154 boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
LongMathTest.java 170 assertEquals(expected, LongMath.isPowerOfTwo(x));
204 /* Relies on the correctness of isPowerOfTwo(long). */
208 boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/
MathUtils.java 255 public final static boolean isPowerOfTwo(final int x) {
  /external/libgdx/gdx/src/com/badlogic/gdx/math/
MathUtils.java 209 static public boolean isPowerOfTwo (int value) {
  /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/ktx/
KTXProcessor.java 172 if (!MathUtils.isPowerOfTwo(texWidth) || !MathUtils.isPowerOfTwo(texHeight))

Completed in 751 milliseconds

1 2 3 4