Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for 29 (0.12 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(8, ImmutableSet.chooseTableSize(4));
    
        assertEquals(1 << 29, ImmutableSet.chooseTableSize(1 << 28));
        assertEquals(1 << 29, ImmutableSet.chooseTableSize((1 << 29) * 3 / 5));
    
        // Now we hit the cap
        assertEquals(1 << 30, ImmutableSet.chooseTableSize(1 << 29));
        assertEquals(1 << 30, ImmutableSet.chooseTableSize((1 << 30) - 1));
    
        // Now we've gone too far
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(8, ImmutableSet.chooseTableSize(4));
    
        assertEquals(1 << 29, ImmutableSet.chooseTableSize(1 << 28));
        assertEquals(1 << 29, ImmutableSet.chooseTableSize((1 << 29) * 3 / 5));
    
        // Now we hit the cap
        assertEquals(1 << 30, ImmutableSet.chooseTableSize(1 << 29));
        assertEquals(1 << 30, ImmutableSet.chooseTableSize((1 << 30) - 1));
    
        // Now we've gone too far
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

       * Each bit is set to 1 for all remainders that indicate divisibility by 2, 3, or 5, so
       * 1, 7, 11, 13, 17, 19, 23, 29 are set to 0. 30 and up don't matter because they won't be hit.
       */
      private static final int SIEVE_30 =
          ~((1 << 1) | (1 << 7) | (1 << 11) | (1 << 13) | (1 << 17) | (1 << 19) | (1 << 23)
              | (1 << 29));
    
      /**
       * Returns {@code true} if {@code n} is a <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SetsTest.java

       * {@code hashCode} implementation.
       */
      public void testPowerSetHashCode_inputHashCodeTimesTooFarValueIsZero() {
        Set<Object> sumToEighthMaxIntElements =
            newHashSet(objectWithHashCode(1 << 29), objectWithHashCode(0));
        assertPowerSetHashCode(1 << 30, sumToEighthMaxIntElements);
    
        Set<Object> sumToQuarterMaxIntElements =
            newHashSet(objectWithHashCode(1 << 30), objectWithHashCode(0));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertTrue(MinMaxPriorityQueue.isEvenLevel(3));
    
        assertFalse(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 1));
    
        int i = 1 << 29;
        assertTrue(MinMaxPriorityQueue.isEvenLevel(i - 2));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 1));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(i));
    
        i = 1 << 30;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMap.java

      public abstract V get(@CheckForNull Object key);
    
      /**
       * {@inheritDoc}
       *
       * <p>See <a
       * href="https://developer.android.com/reference/java/util/Map.html#getOrDefault%28java.lang.Object,%20V%29">{@code
       * Map.getOrDefault}</a>.
       *
       * @since 23.5 (but since 21.0 in the JRE <a
       *     href="https://github.com/google/guava#guava-google-core-libraries-for-java">flavor</a>).
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/InetAddresses.java

       * accounting, et cetera, it may be necessary to <b>coerce</b> IPv6 addresses into IPv4 addresses.
       * This method does so by hashing 64 bits of the IPv6 address into {@code 224.0.0.0/3} (64 bits
       * into 29 bits):
       *
       * <ul>
       *   <li>If the IPv6 address contains an embedded IPv4 address, the function hashes that.
       *   <li>Otherwise, it hashes the upper 64 bits of the IPv6 address.
       * </ul>
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  8. android/guava-tests/test/com/google/common/collect/SetsTest.java

       * {@code hashCode} implementation.
       */
      public void testPowerSetHashCode_inputHashCodeTimesTooFarValueIsZero() {
        Set<Object> sumToEighthMaxIntElements =
            newHashSet(objectWithHashCode(1 << 29), objectWithHashCode(0));
        assertPowerSetHashCode(1 << 30, sumToEighthMaxIntElements);
    
        Set<Object> sumToQuarterMaxIntElements =
            newHashSet(objectWithHashCode(1 << 30), objectWithHashCode(0));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.9K bytes
    - Viewed (1)
  9. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertTrue(MinMaxPriorityQueue.isEvenLevel(3));
    
        assertFalse(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 1));
    
        int i = 1 << 29;
        assertTrue(MinMaxPriorityQueue.isEvenLevel(i - 2));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 1));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(i));
    
        i = 1 << 30;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
Back to top