/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/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
ValueTracking.h | 48 /// isPowerOfTwo - Return true if the given value is known to have exactly one 52 bool isPowerOfTwo(Value *V, const TargetData *TD = 0, unsigned Depth = 0);
|
/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/skia/tests/ |
DetermineDomainModeTest.cpp | 133 bool isPowerOfTwo, 136 int size = isPowerOfTwo ? 128 : 100; 150 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, 151 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad,
|
/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);
|
/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) { 229 && (!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/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
TensorFFT.h | 221 const bool is_power_of_two = isPowerOfTwo(line_len); 299 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static bool isPowerOfTwo(Index x) { 319 eigen_assert(isPowerOfTwo(line_len)); 391 eigen_assert(isPowerOfTwo(n)); 519 eigen_assert(isPowerOfTwo(n));
|
/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/swiftshader/third_party/LLVM/lib/Analysis/ |
ValueTracking.cpp | 711 /// isPowerOfTwo - Return true if the given value is known to have exactly one 715 bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, unsigned Depth) { 735 return isPowerOfTwo(ZI->getOperand(0), TD, Depth); 738 return isPowerOfTwo(SI->getTrueValue(), TD, Depth) && 739 isPowerOfTwo(SI->getFalseValue(), TD, Depth); 748 return isPowerOfTwo(PEO->getOperand(0), TD, Depth); [all...] |
/prebuilts/go/darwin-x86/src/cmd/compile/internal/ssa/ |
rewriteARM64.go | [all...] |
/prebuilts/go/linux-x86/src/cmd/compile/internal/ssa/ |
rewriteARM64.go | [all...] |