Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for smearedVHash (0.07 sec)

  1. guava/src/com/google/common/collect/Hashing.java

       * hereby disclaims copyright to this source code.
       */
      static int smear(int hashCode) {
        return (int) (C2 * Integer.rotateLeft((int) (hashCode * C1), 15));
      }
    
      static int smearedHash(@CheckForNull Object o) {
        return smear((o == null) ? 0 : o.hashCode());
      }
    
      private static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      static int closedTableSize(int expectedEntries, double loadFactor) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Hashing.java

       * hereby disclaims copyright to this source code.
       */
      static int smear(int hashCode) {
        return (int) (C2 * Integer.rotateLeft((int) (hashCode * C1), 15));
      }
    
      static int smearedHash(@CheckForNull Object o) {
        return smear((o == null) ? 0 : o.hashCode());
      }
    
      private static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      static int closedTableSize(int expectedEntries, double loadFactor) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableSet.java

      @Override
      public boolean contains(@CheckForNull Object target) {
        @Nullable Object[] table = this.table;
        if (target == null || table.length == 0) {
          return false;
        }
        for (int i = Hashing.smearedHash(target); ; i++) {
          i &= mask;
          Object candidate = table[i];
          if (candidate == null) {
            return false;
          } else if (candidate.equals(target)) {
            return true;
          }
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactHashing.java

          @CheckForNull Object value,
          int mask,
          Object table,
          int[] entries,
          @Nullable Object[] keys,
          @CheckForNull @Nullable Object[] values) {
        int hash = Hashing.smearedHash(key);
        int tableIndex = hash & mask;
        int next = tableGet(table, tableIndex);
        if (next == UNSET) {
          return -1;
        }
        int hashPrefix = getHashPrefix(hash, mask);
        int lastEntryIndex = -1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactHashing.java

          @CheckForNull Object value,
          int mask,
          Object table,
          int[] entries,
          @Nullable Object[] keys,
          @CheckForNull @Nullable Object[] values) {
        int hash = Hashing.smearedHash(key);
        int tableIndex = hash & mask;
        int next = tableGet(table, tableIndex);
        if (next == UNSET) {
          return -1;
        }
        int hashPrefix = getHashPrefix(hash, mask);
        int lastEntryIndex = -1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top