- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for memhashFallback (0.14 sec)
-
src/runtime/alg.go
// See go.dev/issue/67401. // //go:linkname strhash func strhash(p unsafe.Pointer, h uintptr) uintptr func strhashFallback(a unsafe.Pointer, h uintptr) uintptr { x := (*stringStruct)(a) return memhashFallback(x.str, h, uintptr(x.len)) } // NOTE: Because NaN != NaN, a map can contain any // number of (mostly useless) entries keyed with NaNs. // To avoid long hash chains, we assign a random number
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 13.6K bytes - Viewed (0) -
src/runtime/map_test.go
func TestMemHashGlobalSeed(t *testing.T) { if os.Getenv("GO_TEST_SUBPROCESS_HASH") != "" { fmt.Println(computeHash()) os.Exit(0) return } testenv.MustHaveExec(t) // aeshash and memhashFallback use separate per-process seeds, so test // both. t.Run("aes", func(t *testing.T) { if !*runtime.UseAeshash { t.Skip("No AES") } h1 := subprocessHash(t, "") t.Logf("%d", h1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0)