Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testLog2HalfEven (0.05 sec)

  1. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) < 0);
        }
      }
    
      // Relies on the correctness of log2(BigInteger, {HALF_UP,HALF_DOWN}).
      public void testLog2HalfEven() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          int halfEven = BigIntegerMath.log2(x, HALF_EVEN);
          // Now figure out what rounding mode we should behave like (it depends if FLOOR was
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
Back to top