Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for floorPowerOfTwo (0.05 sec)

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

        }
      }
    
      public void testCeilingPowerOfTwoZero() {
        assertThrows(
            IllegalArgumentException.class, () -> BigIntegerMath.ceilingPowerOfTwo(BigInteger.ZERO));
      }
    
      public void testFloorPowerOfTwoZero() {
        assertThrows(
            IllegalArgumentException.class, () -> BigIntegerMath.floorPowerOfTwo(BigInteger.ZERO));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Nov 19 01:35:24 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/LongMath.java

       * checkedPow(2, log2(x, FLOOR))}.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @since 20.0
       */
      public static long floorPowerOfTwo(long x) {
        checkPositive("x", x);
    
        // Long.highestOneBit was buggy on GWT.  We've fixed it, but I'm not certain when the fix will
        // be released.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 03 21:01:09 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top