HomeSort by relevance Sort by last modified time
    Searched defs:BigIntegerMath (Results 1 - 25 of 58) sorted by null

1 2 3

  /external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
BigIntegerMathTest.java 42 * Tests for BigIntegerMath.
53 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
60 BigIntegerMath.log2(ZERO, mode);
69 BigIntegerMath.log2(BigInteger.valueOf(-1), mode);
78 int result = BigIntegerMath.log2(x, mode);
88 int result = BigIntegerMath.log2(x, mode);
99 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
101 assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY)));
111 int result = BigIntegerMath.log2(x, HALF_UP);
122 int result = BigIntegerMath.log2(x, HALF_DOWN)
    [all...]
LongMathTest.java 79 /* Relies on the correctness of BigIntegerMath.log2 for all modes except UNNECESSARY. */
84 assertEquals(BigIntegerMath.log2(valueOf(x), mode), LongMath.log2(x, mode));
103 // Relies on the correctness of BigIntegerMath.log10 for all modes except UNNECESSARY.
107 // Relies on the correctness of BigIntegerMath.sqrt for all modes except UNNECESSARY.
119 // Depends on the correctness of BigIntegerMath.factorial.
121 // Depends on the correctness of BigIntegerMath.binomial.
125 BigInteger expectedBig = BigIntegerMath.binomial(n, k);
IntMathTest.java 82 assertEquals(BigIntegerMath.log2(valueOf(x), mode), IntMath.log2(x, mode));
101 // Relies on the correctness of BigIntegerMath.log10 for all modes except UNNECESSARY.
107 /* Relies on the correctness of BigIntegerMath.sqrt for all modes except UNNECESSARY. */
295 // Depends on the correctness of BigIntegerMath.factorial.
298 BigInteger expectedBig = BigIntegerMath.factorial(n);
313 // Depends on the correctness of BigIntegerMath.binomial.
  /external/guava/guava-tests/test/com/google/common/math/
BigIntegerMathTest.java 48 * Tests for BigIntegerMath.
56 assertEquals(BigIntegerMath.sqrt(
57 BigInteger.ZERO.setBit(2 * BigIntegerMath.SQRT2_PRECOMPUTE_THRESHOLD + 1), FLOOR),
58 BigIntegerMath.SQRT2_PRECOMPUTED_BITS);
65 assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
72 BigIntegerMath.log2(ZERO, mode);
81 BigIntegerMath.log2(BigInteger.valueOf(-1), mode);
90 int result = BigIntegerMath.log2(x, mode);
100 int result = BigIntegerMath.log2(x, mode);
111 boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x)
    [all...]
IntMathTest.java 48 @GwtIncompatible("BigIntegerMath") // TODO(cpovirk): GWT-enable BigIntegerMath
51 BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Integer.SIZE - 1), FLOOR).intValue(),
62 @GwtIncompatible("BigIntegerMath") // TODO(cpovirk): GWT-enable BigIntegerMath
66 BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Integer.SIZE - i), FLOOR),
71 @GwtIncompatible("BigIntegerMath") // TODO(cpovirk): GWT-enable BigIntegerMath
76 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR).longValue());
80 @GwtIncompatible("BigIntegerMath") // TODO(cpovirk): GWT-enable BigIntegerMat
    [all...]
LongMathTest.java 52 assertEquals(BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Long.SIZE - 1), FLOOR).longValue(),
56 @GwtIncompatible("BigIntegerMath") // TODO(cpovirk): GWT-enable BigIntegerMath
60 BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Long.SIZE - i), FLOOR),
79 assertEquals(BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
83 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR);
108 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k)));
110 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k)));
115 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k)));
194 /* Relies on the correctness of BigIntegerMath.log2 for all modes except UNNECESSARY. *
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
BigIntegerMath.java 49 public final class BigIntegerMath {
266 private BigIntegerMath() {}
  /external/guava/guava/src/com/google/common/math/
BigIntegerMath.java 51 public final class BigIntegerMath {
453 private BigIntegerMath() {}
  /external/owasp/sanitizer/distrib/lib/
guava.jar 
  /external/owasp/sanitizer/lib/guava-libraries/
guava.jar 
  /packages/services/Telecomm/libs/
guava.jar 
  /cts/tests/libcore/javautilcollections/libs/
guava-20.0.jar 
  /external/dagger2/lib/
google-java-format-0.1-20151017.042846-2.jar 
  /external/guice/lib/
guava-16.0.1.jar 
  /external/r8/deps/
guava-19.0.jar 
  /packages/apps/Messaging/build/gcheckstyle/
google-style-checker_deploy.jar 
  /prebuilts/devtools/tools/lib/
guava-13.0.1.jar 
guava-17.0.jar 
guava-18.0.jar 
guava-22.0.jar 
  /prebuilts/gradle-plugin/com/android/databinding/compiler/2.1.0/
compiler-2.1.0.jar 
  /prebuilts/gradle-plugin/com/android/databinding/compiler/2.1.0-beta1/
compiler-2.1.0-beta1.jar 
  /prebuilts/gradle-plugin/com/android/databinding/compiler/2.1.0-beta3/
compiler-2.1.0-beta3.jar 
  /prebuilts/gradle-plugin/com/android/databinding/compiler/2.1.0-rc1/
compiler-2.1.0-rc1.jar 
  /prebuilts/gradle-plugin/com/android/databinding/compiler/2.1.2/
compiler-2.1.2.jar 

Completed in 301 milliseconds

1 2 3