Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Rachum (2.08 sec)

  1. android/guava/src/com/google/common/primitives/Longs.java

        if (digit < 0 || digit >= radix) {
          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
          digit = AsciiDigits.digit(string.charAt(index++));
          if (digit < 0 || digit >= radix || accum < cap) {
            return null;
          }
          accum *= radix;
          if (accum < Long.MIN_VALUE + digit) {
            return null;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

      @GwtIncompatible // TODO
      private long simpleBinomial(int n, int k) {
        long accum = 1;
        for (int i = 0; i < k; i++) {
          accum = LongMath.checkedMultiply(accum, n - i);
          accum /= i + 1;
        }
        return accum;
      }
    
      @GwtIncompatible // java.math.BigInteger
      public void testIsPowerOfTwo() {
        for (long x : ALL_LONG_CANDIDATES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/DoubleMath.java

          // result than multiplying by everySixteenthFactorial[n >> 4] directly.
          double accum = 1.0;
          for (int i = 1 + (n & ~0xf); i <= n; i++) {
            accum *= i;
          }
          return accum * everySixteenthFactorial[n >> 4];
        }
      }
    
      @VisibleForTesting static final int MAX_FACTORIAL = 170;
    
      @VisibleForTesting
    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)
  4. guava-testlib/src/com/google/common/testing/CollectorTester.java

              A result(Collector<T, A, R> collector, Iterable<T> inputs) {
            A accum = collector.supplier().get();
            for (T input : inputs) {
              A newAccum = collector.supplier().get();
              collector.accumulator().accept(newAccum, input);
              accum = collector.combiner().apply(accum, newAccum);
            }
            return accum;
          }
        },
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/LongMath.java

            default:
              throw new AssertionError();
          }
        }
        long accum = 1;
        while (true) {
          switch (k) {
            case 0:
              return accum;
            case 1:
              return checkedMultiply(accum, b);
            default:
              if ((k & 1) != 0) {
                accum = checkedMultiply(accum, b);
              }
              k >>= 1;
              if (k > 0) {
                checkNoOverflow(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/IntMath.java

          default:
            // continue below to handle the general case
        }
        int accum = 1;
        while (true) {
          switch (k) {
            case 0:
              return accum;
            case 1:
              return checkedMultiply(accum, b);
            default:
              if ((k & 1) != 0) {
                accum = checkedMultiply(accum, b);
              }
              k >>= 1;
              if (k > 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CollectCollectors.java

                    }),
            (accum, t) -> {
              /*
               * We assign these to variables before calling checkNotNull to work around a bug in our
               * nullness checker.
               */
              K key = keyFunction.apply(t);
              V newValue = valueFunction.apply(t);
              accum.put(
                  checkNotNull(key, "Null key for input %s", t),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CollectCollectors.java

                    }),
            (accum, t) -> {
              /*
               * We assign these to variables before calling checkNotNull to work around a bug in our
               * nullness checker.
               */
              K key = keyFunction.apply(t);
              V newValue = valueFunction.apply(t);
              accum.put(
                  checkNotNull(key, "Null key for input %s", t),
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LongMathTest.java

      @GwtIncompatible // TODO
      private long simpleBinomial(int n, int k) {
        long accum = 1;
        for (int i = 0; i < k; i++) {
          accum = LongMath.checkedMultiply(accum, n - i);
          accum /= i + 1;
        }
        return accum;
      }
    
      @GwtIncompatible // java.math.BigInteger
      public void testIsPowerOfTwo() {
        for (long x : ALL_LONG_CANDIDATES) {
    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)
  10. android/guava/src/com/google/common/math/BigIntegerMath.java

          if (numeratorBits + bits >= Long.SIZE - 1) {
            // The numerator is as big as it can get without risking overflow.
            // Multiply numeratorAccum / denominatorAccum into accum.
            accum =
                accum
                    .multiply(BigInteger.valueOf(numeratorAccum))
                    .divide(BigInteger.valueOf(denominatorAccum));
            numeratorAccum = p;
            denominatorAccum = q;
    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)
Back to top