Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 146 for rthash (0.2 sec)

  1. android/guava/src/com/google/common/cache/Striped64.java

       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
          threadHashCode.set(hc = new int[1]); // Initialize randomly
          int r = rng.nextInt(); // Avoid zero to allow xorShift rehash
          h = hc[0] = (r == 0) ? 1 : r;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/Striped64.java

       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
          threadHashCode.set(hc = new int[1]); // Initialize randomly
          int r = rng.nextInt(); // Avoid zero to allow xorShift rehash
          h = hc[0] = (r == 0) ? 1 : r;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

          long oldEntry = entries[i];
          int hash = getHash(oldEntry);
          int tableIndex = hash & mask;
          int next = newTable[tableIndex];
          newTable[tableIndex] = i;
          entries[i] = ((long) hash << 32) | (NEXT_MASK & next);
        }
    
        this.threshold = newThreshold;
        this.table = newTable;
      }
    
      int indexOf(@CheckForNull Object key) {
        int hash = smearedHash(key);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ConfigurableClassLoaderHierarchyHasher.java

                if (cl instanceof CachingClassLoader || cl instanceof MultiParentClassLoader) {
                    return true;
                }
                HashCode hash = classLoaderFactory.getClassLoaderClasspathHash(cl);
                if (hash != null) {
                    hasher.putHash(hash);
                    return true;
                }
                foundUnknown = true;
                return false;
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

      }
    
      /**
       * Applies a supplemental hash function to a given hash code, which defends against poor quality
       * hash functions. This is critical when the concurrent hash map uses power-of-two length hash
       * tables, that otherwise encounter collisions for hash codes that do not differ in lower or upper
       * bits.
       *
       * @param h hash code
       */
      static int rehash(int h) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/changedetection/state/CachingFileHasher.java

            private final HashCode hash;
            private final long timestamp;
            private final long length;
    
            public FileInfo(HashCode hash, long length, long timestamp) {
                this.hash = hash;
                this.length = length;
                this.timestamp = timestamp;
            }
    
            public HashCode getHash() {
                return hash;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 10 13:47:15 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/classpath/CopyingClasspathFileTransformer.java

            if (!cachedFile.isFile()) {
                // Just copy the jar
                GFileUtils.copyFile(source, cachedFile);
            }
            return cachedFile;
        }
    
        @Override
        public ClasspathFileHasher getFileHasher() {
            return FileSystemLocationSnapshot::getHash;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 20:14:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/OutputFileChanges.java

                if (previousSnapshot.getHash().equals(currentSnapshot.getHash())) {
                    return true;
                } else if (currentSnapshot.getType() != FileType.Directory || previousSnapshot.getType() != FileType.Directory) {
                    // The hash is different and one of the two snapshots is not a directory falls into cases:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/caching/impl/DefaultCachingStateFactory.java

                logger.warn("Appending input file fingerprints for '{}' to build cache key: {} - {}",
                    propertyName, fingerprint.getHash(), fingerprint);
                cacheKeyHasher.putString(propertyName);
                cacheKeyHasher.putHash(fingerprint.getHash());
            });
    
            beforeExecutionState.getOutputFileLocationSnapshots().keySet().forEach(propertyName -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/Methods.java

                        return Arrays.equals(a.getGenericParameterTypes(), b.getGenericParameterTypes());
                    }
                }
                return false;
            }
    
            @Override
            protected int doHash(Method method) {
                return new HashCodeBuilder()
                    .append(method.getName())
                    .append(method.getParameterTypes())
                    .toHashCode();
            }
        };
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top