Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testRoundLog2Exact (0.07 sec)

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

            assertEquals(exp + 1, DoubleMath.log2(x, mode));
            assertEquals(exp, DoubleMath.log2(y, mode));
          }
        }
      }
    
      @GwtIncompatible // DoubleMath.log2(double, RoundingMode)
      public void testRoundLog2Exact() {
        for (double x : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          boolean isPowerOfTwo = StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x;
          try {
            int log2 = DoubleMath.log2(x, UNNECESSARY);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
Back to top