Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for lessThanBranchFree (0.06 sec)

  1. 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
    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. 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() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top