Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for lessThanBranchFree (0.17 seconds)

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

          case DOWN:
            return logFloor;
          case CEILING:
          case UP:
            return logFloor + lessThanBranchFree(floorPow, x);
          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
            // sqrt(10) is irrational, so log10(x) - logFloor is never exactly 0.5
            return logFloor + lessThanBranchFree(halfPowersOf10[logFloor], x);
        }
        throw new AssertionError();
      }
    
    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

          case DOWN:
            return logFloor;
          case CEILING:
          case UP:
            return logFloor + lessThanBranchFree(floorPow, x);
          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
            // sqrt(10) is irrational, so log10(x)-logFloor is never exactly 0.5
            return logFloor + lessThanBranchFree(halfPowersOf10[logFloor], x);
        }
        throw new AssertionError();
      }
    
      @GwtIncompatible // TODO
    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-tests/test/com/google/common/math/IntMathTest.java

        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int y : ALL_INTEGER_CANDIDATES) {
            if (LongMath.fitsInInt((long) x - y)) {
              int expected = (x < y) ? 1 : 0;
              int actual = IntMath.lessThanBranchFree(x, y);
              assertEquals(expected, actual);
            }
          }
        }
      }
    
      @GwtIncompatible // java.math.BigInteger
      public void testIsPowerOfTwo() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/math/IntMathTest.java

        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int y : ALL_INTEGER_CANDIDATES) {
            if (LongMath.fitsInInt((long) x - y)) {
              int expected = (x < y) ? 1 : 0;
              int actual = IntMath.lessThanBranchFree(x, y);
              assertEquals(expected, actual);
            }
          }
        }
      }
    
      @GwtIncompatible // java.math.BigInteger
      public void testIsPowerOfTwo() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/LongMathTest.java

            BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y));
            if (fitsInLong(difference)) {
              int expected = (x < y) ? 1 : 0;
              int actual = LongMath.lessThanBranchFree(x, y);
              assertEquals(expected, actual);
            }
          }
        }
      }
    
      // Throws an ArithmeticException if "the simple implementation" of binomial coefficients overflows
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 31.4K bytes
    - Click Count (0)
Back to Top