Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for noAddOverflow (0.53 seconds)

  1. android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

            return LongMath.binomial(n, k);
          }
    
          @Override
          public boolean noAddOverflow(int a, int b) {
            try {
              int unused = IntMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
              return false;
            }
          }
    
          @Override
          public boolean noAddOverflow(long a, long b) {
            try {
              long unused = LongMath.checkedAdd(a, b);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

            return LongMath.binomial(n, k);
          }
    
          @Override
          public boolean noAddOverflow(int a, int b) {
            try {
              int unused = IntMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
              return false;
            }
          }
    
          @Override
          public boolean noAddOverflow(long a, long b) {
            try {
              long unused = LongMath.checkedAdd(a, b);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 6.9K bytes
    - Click Count (0)
Back to Top