- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 423 for wyhash (0.24 sec)
-
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) -
src/runtime/hash32.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Hashing algorithm inspired by // wyhash: https://github.com/wangyi-fudan/wyhash/blob/ceb019b530e2c1c14d70b79bfa2bc49de7d95bc1/Modern%20Non-Cryptographic%20Hash%20Function%20and%20Pseudorandom%20Number%20Generator.pdf //go:build 386 || arm || mips || mipsle package runtime import "unsafe"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.6K bytes - Viewed (0) -
src/runtime/hash64.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Hashing algorithm inspired by // wyhash: https://github.com/wangyi-fudan/wyhash //go:build amd64 || arm64 || loong64 || mips64 || mips64le || ppc64 || ppc64le || riscv64 || s390x || wasm package runtime import ( "runtime/internal/math" "unsafe" ) const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 17:39:28 UTC 2024 - 1.9K bytes - Viewed (0) -
src/runtime/rand.go
// Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname cheaprand //go:nosplit func cheaprand() uint32 { mp := getg().m // Implement wyrand: https://github.com/wangyi-fudan/wyhash // Only the platform that math.Mul64 can be lowered // by the compiler should be in this list. if goarch.IsAmd64|goarch.IsArm64|goarch.IsPpc64| goarch.IsPpc64le|goarch.IsMips64|goarch.IsMips64le|
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 14:32:47 UTC 2024 - 8K bytes - Viewed (0) -
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) -
src/internal/zstd/xxhash_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:34:06 UTC 2023 - 2.3K bytes - Viewed (0) -
pkg/registry/rbac/validation/rule_test.go
for _, s := range sli { io.WriteString(hash, s) } } } writeStrings(p.Verbs, p.APIGroups, p.Resources, p.ResourceNames, p.NonResourceURLs) return string(hash.Sum(nil)) } // byHash sorts a set of policy rules by a hash of its fields type byHash []rbacv1.PolicyRule func (b byHash) Len() int { return len(b) } func (b byHash) Less(i, j int) bool { return hashOf(b[i]) < hashOf(b[j]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/hash/DefaultChecksumService.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Jun 04 22:23:37 UTC 2023 - 3.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/HashBiMap.java
K oldKey = delegate.key; int keyHash = smearedHash(key); if (keyHash == delegate.keyHash && Objects.equal(key, oldKey)) { return key; } checkArgument(seekByKey(key, keyHash) == null, "value already present: %s", key); delete(delegate); BiEntry<K, V> newEntry = new BiEntry<>(key, keyHash, delegate.value, delegate.valueHash);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 13 14:11:58 UTC 2023 - 24.5K bytes - Viewed (0) -
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)