Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Rachum (0.29 sec)

  1. 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)
  2. misc/cgo/gmp/pi.go

    	}
    	return tmp1.Int64()
    }
    
    func nextTerm(k int64) {
    	y2 := k*2 + 1
    	accum.Add(accum, tmp1.Lsh(numer, 1))
    	accum.Mul(accum, tmp1.SetInt64(y2))
    	numer.Mul(numer, tmp1.SetInt64(k))
    	denom.Mul(denom, tmp1.SetInt64(y2))
    }
    
    func eliminateDigit(d int64) {
    	accum.Sub(accum, tmp1.Mul(denom, tmp1.SetInt64(d)))
    	accum.Mul(accum, ten)
    	numer.Mul(numer, ten)
    }
    
    func main() {
    	i := 0
    	k := int64(0)
    	for {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  3. operator/cmd/mesh/profile-dump.go

    	switch v := obj.(type) {
    	case map[string]any:
    		accum := make([]string, 0)
    		for key, vv := range v {
    			childwalk, err := walk(fmt.Sprintf("%s%s%s", path, separator, pathComponent(key)), ".", vv)
    			if err != nil {
    				return accum, err
    			}
    			accum = append(accum, childwalk...)
    		}
    		return accum, nil
    	case []any:
    		accum := make([]string, 0)
    		for idx, vv := range v {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. 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)
  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/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)
  7. 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)
  8. 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)
  9. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  10. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top