Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for BigInteger (0.3 sec)

  1. android/guava/src/com/google/common/math/BigIntegerMath.java

        double roundToDoubleArbitrarily(BigInteger bigInteger) {
          return DoubleUtils.bigToDouble(bigInteger);
        }
    
        @Override
        int sign(BigInteger bigInteger) {
          return bigInteger.signum();
        }
    
        @Override
        BigInteger toX(double d, RoundingMode mode) {
          return DoubleMath.roundToBigInteger(d, mode);
        }
    
        @Override
        BigInteger minus(BigInteger a, BigInteger b) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            }
          }
        }
      }
    
      private static final BigInteger BAD_FOR_ANDROID_P = new BigInteger("-9223372036854775808");
      private static final BigInteger BAD_FOR_ANDROID_Q = new BigInteger("-1");
    
      private static final BigInteger BAD_FOR_GINGERBREAD_P = new BigInteger("-9223372036854775808");
      private static final BigInteger BAD_FOR_GINGERBREAD_Q = new BigInteger("-4294967296");
    
      @GwtIncompatible // TODO
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            }
          }
        }
      }
    
      private static final BigInteger BAD_FOR_ANDROID_P = new BigInteger("-9223372036854775808");
      private static final BigInteger BAD_FOR_ANDROID_Q = new BigInteger("-1");
    
      private static final BigInteger BAD_FOR_GINGERBREAD_P = new BigInteger("-9223372036854775808");
      private static final BigInteger BAD_FOR_GINGERBREAD_Q = new BigInteger("-4294967296");
    
      @GwtIncompatible // TODO
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(doubleConversionTest + i);
          BigInteger bigI = BigInteger.valueOf(i);
          testBigIntegersBuilder
              .add(bigI)
              .add(BigInteger.valueOf(Long.MAX_VALUE).add(bigI))
              .add(BigInteger.valueOf(Long.MIN_VALUE).add(bigI))
              .add(BigInteger.valueOf(Integer.MAX_VALUE).add(bigI))
              .add(BigInteger.valueOf(Integer.MIN_VALUE).add(bigI))
              .add(BigInteger.ONE.shiftLeft(63).add(bigI))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/IntMathTest.java

          }
        }
      }
    
      private static final BigInteger MAX_INT = BigInteger.valueOf(Integer.MAX_VALUE);
      private static final BigInteger MIN_INT = BigInteger.valueOf(Integer.MIN_VALUE);
    
      private static int saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_INT) > 0) {
          return Integer.MAX_VALUE;
        }
        if (big.compareTo(MIN_INT) < 0) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/DiscreteDomain.java

        }
    
        @Override
        public BigInteger previous(BigInteger value) {
          return value.subtract(BigInteger.ONE);
        }
    
        @Override
        BigInteger offset(BigInteger origin, long distance) {
          checkNonnegative(distance, "distance");
          return origin.add(BigInteger.valueOf(distance));
        }
    
        @Override
        public long distance(BigInteger start, BigInteger end) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      private static boolean fitsInLong(BigInteger big) {
        return big.bitLength() <= 63;
      }
    
      private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);
      private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);
    
      private static long saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_LONG) > 0) {
          return Long.MAX_VALUE;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/MathTesting.java

       */
      static final ImmutableSet<BigInteger> POSITIVE_BIGINTEGER_CANDIDATES;
    
      static final Iterable<BigInteger> NEGATIVE_BIGINTEGER_CANDIDATES;
    
      static final Iterable<BigInteger> NONZERO_BIGINTEGER_CANDIDATES;
    
      static final Iterable<BigInteger> ALL_BIGINTEGER_CANDIDATES;
    
      static {
        ImmutableSet.Builder<BigInteger> bigValues = ImmutableSet.builder();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.math.BigInteger.ONE;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.testing.Helpers;
    import com.google.common.testing.NullPointerTester;
    import java.math.BigInteger;
    import java.util.Arrays;
    import java.util.Comparator;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/MathTesting.java

       */
      static final ImmutableSet<BigInteger> POSITIVE_BIGINTEGER_CANDIDATES;
    
      static final Iterable<BigInteger> NEGATIVE_BIGINTEGER_CANDIDATES;
    
      static final Iterable<BigInteger> NONZERO_BIGINTEGER_CANDIDATES;
    
      static final Iterable<BigInteger> ALL_BIGINTEGER_CANDIDATES;
    
      static {
        ImmutableSet.Builder<BigInteger> bigValues = ImmutableSet.builder();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
Back to top