Searched refs:isPowerOfTwo (Results 1 - 21 of 21) sorted by relevance

/external/guava/guava/src/com/google/common/math/
H A DDoubleMath.java176 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 DBigIntegerMath.java54 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 DIntMath.java63 public static boolean isPowerOfTwo(int x) { method in class:IntMath
80 checkRoundingUnnecessary(isPowerOfTwo(x));
H A DLongMath.java60 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 DIntMath.java52 public static boolean isPowerOfTwo(int x) { method in class:IntMath
/external/clang/include/clang/AST/
H A DCharUnits.h127 /// isPowerOfTwo - Test whether the quantity is a power of two.
129 bool isPowerOfTwo() const { function in class:clang::CharUnits
/external/guava/guava-tests/test/com/google/common/math/
H A DIntMathTest.java93 assertEquals(expected, IntMath.isPowerOfTwo(x));
129 // Relies on the correctness of isPowerOfTwo(int).
134 boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
H A DBigIntegerMathTest.java63 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
107 // Relies on the correctness of isPowerOfTwo(BigInteger).
111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
H A DDoubleMathTest.java378 assertTrue(DoubleMath.isPowerOfTwo(StrictMath.pow(2.0, i)));
386 assertEquals(expected, DoubleMath.isPowerOfTwo(x));
H A DLongMathTest.java135 assertEquals(expected, LongMath.isPowerOfTwo(x));
169 /* Relies on the correctness of isPowerOfTwo(long). */
173 boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DHashTable.h588 template<unsigned size, bool isPowerOfTwo> struct HashTableCapacityForSizeSplitter;
/external/clang/lib/CodeGen/
H A DCGObjC.cpp714 if (!IvarSize.isPowerOfTwo()) {
/external/owasp/sanitizer/distrib/lib/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/owasp/sanitizer/lib/guava-libraries/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/clang/lib/AST/
H A DExprConstant.cpp6235 if (Size.isPowerOfTwo()) {
/external/chromium_org/third_party/checkstyle/
H A Dcheckstyle-5.7-all.jarMETA-INF/MANIFEST.MF META-INF/ checkstyle_packages.xml checkstylecompilation.properties checkstyletask.properties com/ ...
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/closure/
H A Dcompiler.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/javascript/ com/google/javascript/jscomp/ ...
/external/chromium_org/third_party/closure_compiler/compiler/
H A Dcompiler.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/debugging/ com/google/debugging/sourcemap/ ...
/external/owasp/sanitizer/tools/findbugs/lib/
H A Dfindbugs.jarMETA-INF/ META-INF/MANIFEST.MF default.xsl edu/ edu/umd/ edu/umd/cs/ edu/ ...
/external/chromium_org/tools/win/split_link/viz.js/
H A Dviz.js146 } else if (isNumber(quantum) && isPowerOfTwo(quantum)) {
[all...]
/external/chromium_org/v8/tools/profviz/
H A Dgnuplot-4.6.3-emscripten.js204 } else if (isNumber(quantum) && isPowerOfTwo(quantum)) {
[all...]

Completed in 6812 milliseconds