Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testConstantMaxPowerOfSqrt2Unsigned (0.13 sec)

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

        assertThrows(IllegalArgumentException.class, () -> IntMath.floorPowerOfTwo(0));
      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
      public void testConstantMaxPowerOfSqrt2Unsigned() {
        assertEquals(
            /* expected= */ BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Integer.SIZE - 1), FLOOR)
                .intValue(),
            /* actual= */ IntMath.MAX_POWER_OF_SQRT2_UNSIGNED);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
Back to top