Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testLog2Exact (0.09 sec)

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

            assertEquals(BigIntegerMath.log2(valueOf(x), mode), IntMath.log2(x, mode));
          }
        }
      }
    
      // Relies on the correctness of isPowerOfTwo(int).
      public void testLog2Exact() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          // We only expect an exception if x was not a power of 2.
          boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

            assertEquals(BigIntegerMath.log2(valueOf(x), mode), IntMath.log2(x, mode));
          }
        }
      }
    
      // Relies on the correctness of isPowerOfTwo(int).
      public void testLog2Exact() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          // We only expect an exception if x was not a power of 2.
          boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

            assertEquals(BigIntegerMath.log2(valueOf(x), mode), LongMath.log2(x, mode));
          }
        }
      }
    
      /* Relies on the correctness of isPowerOfTwo(long). */
      public void testLog2Exact() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          // We only expect an exception if x was not a power of 2.
          boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top