Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for overflowY (0.23 sec)

  1. guava/src/com/google/common/math/LongMath.java

       * Math#addExact(long, long)}. Also note that adding two {@code int} values can <b>never</b>
       * overflow a {@code long}, so you can just write {@code (long) a + b}.
       *
       * @throws ArithmeticException if {@code a + b} overflows in signed {@code long} arithmetic
       */
      @InlineMe(replacement = "Math.addExact(a, b)")
      public static long checkedAdd(long a, long b) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

                  || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k)));
          // In the first case, any long is valid; in the second, we want to test that the next-bigger
          // long overflows.
        }
        int k = LongMath.biggestBinomials.length;
        assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k)));
        // 2 * k is the smallest value for which we don't replace k with (n-k).
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/Collections2Test.java

      }
    
      public void testOrderedPermutationSetSizeOverflow() {
        // 12 elements won't overflow
        assertEquals(
            479001600 /*12!*/,
            Collections2.orderedPermutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
                .size());
        // 13 elements overflow an int
        assertEquals(
            Integer.MAX_VALUE,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/IntMathTest.java

                  || !fitsInInt(BigIntegerMath.binomial(IntMath.biggestBinomials[k] + 1, k)));
          // In the first case, any int is valid; in the second, we want to test that the next-bigger
          // int overflows.
        }
        assertFalse(
            fitsInInt(
                BigIntegerMath.binomial(
                    2 * IntMath.biggestBinomials.length, IntMath.biggestBinomials.length)));
      }
    
      @GwtIncompatible // sqrt
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/CacheStats.java

       * uncached value. This is defined as {@code hitCount + missCount}.
       *
       * <p><b>Note:</b> the values of the metrics are undefined in case of overflow (though it is
       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
      public long requestCount() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            PriorityTrackingBooster.clearExecutionOrder();
    
            scoreUpdater.execute();
    
            // Due to integer overflow in comparator, execution order is affected for extreme values
            // The comparator b2 - b1 with MAX_VALUE and MIN_VALUE causes overflow
            List<Integer> executionOrder = PriorityTrackingBooster.getExecutionOrder();
            assertEquals(3, executionOrder.size());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/MathTesting.java

            @Override
            public BigInteger apply(BigInteger x) {
              return x.negate();
            }
          };
    
      /*
       * This list contains values that attempt to provoke overflow in integer operations. It contains
       * positive values on or near 2^N for N near multiples of 8 (near byte boundaries).
       */
      static final ImmutableSet<Integer> POSITIVE_INTEGER_CANDIDATES;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        static {
          BigInteger overflow = BigInteger.ONE.shiftLeft(64);
          for (int i = Character.MIN_RADIX; i <= Character.MAX_RADIX; i++) {
            maxValueDivs[i] = divide(MAX_VALUE, i);
            maxValueMods[i] = (int) remainder(MAX_VALUE, i);
            maxSafeDigits[i] = overflow.toString(i).length() - 1;
          }
        }
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MoreCollectors.java

          element = null;
          extras = emptyList();
        }
    
        IllegalArgumentException multiples(boolean overflow) {
          StringBuilder sb =
              new StringBuilder().append("expected one element but was: <").append(element);
          for (Object o : extras) {
            sb.append(", ").append(o);
          }
          if (overflow) {
            sb.append(", ...");
          }
          sb.append('>');
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/MoreCollectors.java

          element = null;
          extras = emptyList();
        }
    
        IllegalArgumentException multiples(boolean overflow) {
          StringBuilder sb =
              new StringBuilder().append("expected one element but was: <").append(element);
          for (Object o : extras) {
            sb.append(", ").append(o);
          }
          if (overflow) {
            sb.append(", ...");
          }
          sb.append('>');
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top