Searched defs:isPowerOfTwo (Results 1 - 9 of 9) sorted by relevance
/external/webkit/Source/JavaScriptCore/wtf/ |
H A D | PageBlock.h | 34 inline bool isPowerOfTwo(size_t size) { return !(size & (size - 1)); } function in namespace:WTF 81 using WTF::isPowerOfTwo;
|
/external/guava/guava/src/com/google/common/math/ |
H A D | BigIntegerMath.java | 54 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 | DoubleMath.java | 176 public static boolean isPowerOfTwo(double x) { method in class:DoubleMath 177 return x > 0.0 && isFinite(x) && LongMath.isPowerOfTwo(getSignificand(x)); 222 checkRoundingUnnecessary(isPowerOfTwo(x)); 228 increment = !isPowerOfTwo(x); 231 increment = exponent < 0 & !isPowerOfTwo(x); 234 increment = exponent >= 0 & !isPowerOfTwo(x);
|
H A D | IntMath.java | 63 public static boolean isPowerOfTwo(int x) { method in class:IntMath 80 checkRoundingUnnecessary(isPowerOfTwo(x));
|
H A D | LongMath.java | 60 public static boolean isPowerOfTwo(long x) { method in class:LongMath 76 checkRoundingUnnecessary(isPowerOfTwo(x));
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
H A D | IntMath.java | 52 public static boolean isPowerOfTwo(int x) { method in class:IntMath
|
/external/clang/include/clang/AST/ |
H A D | CharUnits.h | 128 /// isPowerOfTwo - Test whether the quantity is a power of two. 130 bool isPowerOfTwo() const { function in class:clang::CharUnits
|
/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/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 795 /// isPowerOfTwo - Return true if the given value is known to have exactly one 799 bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, bool OrZero, function in class:llvm 827 return isPowerOfTwo(X, TD, /*OrZero*/true, Depth); 830 return isPowerOfTwo(ZI->getOperand(0), TD, OrZero, Depth); 833 return isPowerOfTwo(SI->getTrueValue(), TD, OrZero, Depth) && 834 isPowerOfTwo(SI->getFalseValue(), TD, OrZero, Depth); 838 if (isPowerOfTwo(X, TD, /*OrZero*/true, Depth) || 839 isPowerOfTwo(Y, TD, /*OrZero*/true, Depth)) 852 return isPowerOfTwo(cast<Operator>(V)->getOperand(0), TD, OrZero, Depth); 951 if (XKnownNonNegative && isPowerOfTwo( [all...] |
Completed in 2551 milliseconds