Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for fit (0.16 sec)

  1. guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      private static BigInteger oldSlowFactorial(int n1, int n2) {
        assert n1 <= n2;
        if (IntMath.log2(n2, CEILING) * (n2 - n1) < Long.SIZE - 1) {
          // the result will definitely fit into a long
          long result = 1;
          for (int i = n1 + 1; i <= n2; i++) {
            result *= i;
          }
          return BigInteger.valueOf(result);
        }
    
        /*
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

    import java.util.concurrent.atomic.AtomicReference;
    import junit.framework.TestCase;
    
    /**
     * Supplemental tests for {@link Monitor}.
     *
     * <p>This test class contains various test cases that don't fit into the test case generation in
     * {@link GeneratedMonitorTest}.
     *
     * @author Justin T. Sampson
     */
    public class SupplementalMonitorTest extends TestCase {
    
      public void testLeaveWithoutEnterThrowsIMSE() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      private static BigInteger oldSlowFactorial(int n1, int n2) {
        assert n1 <= n2;
        if (IntMath.log2(n2, CEILING) * (n2 - n1) < Long.SIZE - 1) {
          // the result will definitely fit into a long
          long result = 1;
          for (int i = n1 + 1; i <= n2; i++) {
            result *= i;
          }
          return BigInteger.valueOf(result);
        }
    
        /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Utf8.java

          }
        }
    
        if (utf8Length < utf16Length) {
          // Necessary and sufficient condition for overflow because of maximum 3x expansion
          throw new IllegalArgumentException(
              "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32)));
        }
        return utf8Length;
      }
    
      private static int encodedLengthGeneral(CharSequence sequence, int start) {
        int utf16Length = sequence.length();
        int utf8Length = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

    import java.util.concurrent.atomic.AtomicReference;
    import junit.framework.TestCase;
    
    /**
     * Supplemental tests for {@link Monitor}.
     *
     * <p>This test class contains various test cases that don't fit into the test case generation in
     * {@link GeneratedMonitorTest}.
     *
     * @author Justin T. Sampson
     */
    public class SupplementalMonitorTest extends TestCase {
    
      public void testLeaveWithoutEnterThrowsIMSE() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashing.java

        }
      }
    
      /**
       * Sets {@code table[index]} to {@code entry}, where {@code table} is actually a {@code byte[]},
       * {@code short[]}, or {@code int[]}. The value of {@code entry} should fit in the size of the
       * assigned array element, when seen as an unsigned value. So if {@code table} is a {@code byte[]}
       * then we should have {@code 0 ≤ entry ≤ 255}, and if {@code table} is a {@code short[]} then we
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Utf8.java

          }
        }
    
        if (utf8Length < utf16Length) {
          // Necessary and sufficient condition for overflow because of maximum 3x expansion
          throw new IllegalArgumentException(
              "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32)));
        }
        return utf8Length;
      }
    
      private static int encodedLengthGeneral(CharSequence sequence, int start) {
        int utf16Length = sequence.length();
        int utf8Length = 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        // Ordinarily we'd use something like i += Character.charCount(string.codePointAt(i)) here. But
        // we can get away with i++ because the whole point of this method is to return false if we find
        // a code point that doesn't fit in a char.
        for (int i = 0; i < string.length(); i++) {
          if (string.codePointAt(i) > 0xffff) {
            return false;
          }
        }
        return true;
      }
    
      @SuppressWarnings("deprecation")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashing.java

        }
      }
    
      /**
       * Sets {@code table[index]} to {@code entry}, where {@code table} is actually a {@code byte[]},
       * {@code short[]}, or {@code int[]}. The value of {@code entry} should fit in the size of the
       * assigned array element, when seen as an unsigned value. So if {@code table} is a {@code byte[]}
       * then we should have {@code 0 ≤ entry ≤ 255}, and if {@code table} is a {@code short[]} then we
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        // Ordinarily we'd use something like i += Character.charCount(string.codePointAt(i)) here. But
        // we can get away with i++ because the whole point of this method is to return false if we find
        // a code point that doesn't fit in a char.
        for (int i = 0; i < string.length(); i++) {
          if (string.codePointAt(i) > 0xffff) {
            return false;
          }
        }
        return true;
      }
    
      @SuppressWarnings("deprecation")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
Back to top