Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for saturatedMultiply (0.12 seconds)

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

        while (true) {
          switch (k) {
            case 0:
              return accum;
            case 1:
              return saturatedMultiply(accum, b);
            default:
              if ((k & 1) != 0) {
                accum = saturatedMultiply(accum, b);
              }
              k >>= 1;
              if (k > 0) {
                if (-FLOOR_SQRT_MAX_INT > b | b > FLOOR_SQRT_MAX_INT) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/math/LongMath.java

        while (true) {
          switch (k) {
            case 0:
              return accum;
            case 1:
              return saturatedMultiply(accum, b);
            default:
              if ((k & 1) != 0) {
                accum = saturatedMultiply(accum, b);
              }
              k >>= 1;
              if (k > 0) {
                if (-FLOOR_SQRT_MAX_LONG > b | b > FLOOR_SQRT_MAX_LONG) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 09 23:01:02 GMT 2026
    - 46.8K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Collections2.java

              // We move to the next non-repeated element.
              permutations = IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r));
              r = 0;
              if (permutations == Integer.MAX_VALUE) {
                return Integer.MAX_VALUE;
              }
            }
            n++;
            r++;
          }
          return IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r));
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 23K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/ByteStreams.java

        // reading and so all of the bytes in each new allocated buffer are available for reading from
        // the stream.
        for (int bufSize = initialBufferSize;
            totalLen < MAX_ARRAY_LEN;
            bufSize = IntMath.saturatedMultiply(bufSize, bufSize < 4096 ? 4 : 2)) {
          byte[] buf = new byte[min(bufSize, MAX_ARRAY_LEN - totalLen)];
          bufs.add(buf);
          int off = 0;
          while (off < buf.length) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 31.1K bytes
    - Click Count (0)
Back to Top