Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 137 for rthash (0.1 sec)

  1. src/hash/maphash/maphash_runtime.go

    )
    
    //go:linkname runtime_rand runtime.rand
    func runtime_rand() uint64
    
    //go:linkname runtime_memhash runtime.memhash
    //go:noescape
    func runtime_memhash(p unsafe.Pointer, seed, s uintptr) uintptr
    
    func rthash(buf []byte, seed uint64) uint64 {
    	if len(buf) == 0 {
    		return seed
    	}
    	len := len(buf)
    	// The runtime hasher only works on uintptr. For 64-bit
    	// architectures, we use the hasher directly. Otherwise,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/hash/maphash/maphash_purego.go

    //go:build purego
    
    package maphash
    
    import (
    	"crypto/rand"
    	"internal/byteorder"
    	"math/bits"
    )
    
    func rthash(buf []byte, seed uint64) uint64 {
    	if len(buf) == 0 {
    		return seed
    	}
    	return wyhash(buf, seed, uint64(len(buf)))
    }
    
    func rthashString(s string, state uint64) uint64 {
    	return rthash([]byte(s), state)
    }
    
    func randUint64() uint64 {
    	buf := make([]byte, 8)
    	_, _ = rand.Read(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/hash/maphash/maphash.go

    }
    
    // A Hash computes a seeded hash of a byte sequence.
    //
    // The zero Hash is a valid Hash ready to use.
    // A zero Hash chooses a random seed for itself during
    // the first call to a Reset, Write, Seed, or Sum64 method.
    // For control over the seed, use SetSeed.
    //
    // The computed hash values depend only on the initial seed and
    // the sequence of bytes provided to the Hash object, not on the way
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/internal/zstd/xxhash_test.go

    		hhHash, err := strconv.ParseUint(string(hhHashBytes), 16, 64)
    		if err != nil {
    			t.Fatalf("could not parse hash %q: %v", hhHashBytes, err)
    		}
    
    		var xh xxhash64
    		xh.reset()
    		xh.update(b)
    		goHash := xh.digest()
    
    		if goHash != hhHash {
    			t.Errorf("Go hash %#x != xxhsum hash %#x", goHash, hhHash)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:34:06 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/DefaultStreamHasher.java

            return doHash(inputStream, outputStream);
        }
    
        private HashCode doHash(InputStream inputStream, OutputStream outputStream) throws IOException {
            byte[] buffer = takeBuffer();
            try {
                PrimitiveHasher hasher = Hashing.newPrimitiveHasher();
                hasher.putHash(SIGNATURE);
                while (true) {
                    int nread = inputStream.read(buffer);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/MerkleDirectorySnapshotBuilder.java

                }
                Hasher hasher = Hashing.newHasher();
                hasher.putHash(DIR_SIGNATURE);
                for (FileSystemLocationSnapshot child : children) {
                    hasher.putString(child.getName());
                    hasher.putHash(child.getHash());
                }
                return new DirectorySnapshot(absolutePath, name, accessType, hasher.hash(), children);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. src/internal/zstd/xxhash.go

    	xxhPrime64c5 = 0x27d4eb2f165667c5
    )
    
    // xxhash64 is the state of a xxHash-64 checksum.
    type xxhash64 struct {
    	len uint64    // total length hashed
    	v   [4]uint64 // accumulators
    	buf [32]byte  // buffer
    	cnt int       // number of bytes in buffer
    }
    
    // reset discards the current state and prepares to compute a new hash.
    // We assume a seed of 0 since that is what zstd uses.
    func (xh *xxhash64) reset() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. pkg/util/hash/hash.go

    limitations under the License.
    */
    
    package hash
    
    import (
    	"fmt"
    	"hash"
    
    	"k8s.io/apimachinery/pkg/util/dump"
    )
    
    // DeepHashObject writes specified object to hash using the spew library
    // which follows pointers and prints actual values of the nested objects
    // ensuring the hash does not change when a pointer changes.
    func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) {
    	hasher.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 998 bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentingClasspathFileTransformer.java

            gradleCoreInstrumentationTypeRegistry.getInstrumentedTypesHash().ifPresent(hasher::putHash);
            gradleCoreInstrumentationTypeRegistry.getUpgradedPropertiesHash().ifPresent(hasher::putHash);
            classpathElementTransformFactory.applyConfigurationTo(hasher);
            transform.applyConfigurationTo(hasher);
            return hasher.hash();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:36:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/hash/DefaultChecksumService.java

        public HashCode md5(File file) {
            return doHash(file, md5);
        }
    
        @Override
        public HashCode sha1(File file) {
            return doHash(file, sha1);
        }
    
        @Override
        public HashCode sha256(File file) {
            return doHash(file, sha256);
        }
    
        @Override
        public HashCode sha512(File file) {
            return doHash(file, sha512);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jun 04 22:23:37 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top