mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: Smhasher tests of our map hash function.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/13436045
This commit is contained in:
parent
da7a51d16b
commit
78338d8c66
3 changed files with 550 additions and 0 deletions
|
|
@ -67,3 +67,15 @@ func testSchedLocalQueueSteal()
|
|||
|
||||
var TestSchedLocalQueue1 = testSchedLocalQueue
|
||||
var TestSchedLocalQueueSteal1 = testSchedLocalQueueSteal
|
||||
|
||||
func haveGoodHash() bool
|
||||
func stringHash(s string, seed uintptr) uintptr
|
||||
func bytesHash(b []byte, seed uintptr) uintptr
|
||||
func int32Hash(i uint32, seed uintptr) uintptr
|
||||
func int64Hash(i uint64, seed uintptr) uintptr
|
||||
|
||||
var HaveGoodHash = haveGoodHash
|
||||
var StringHash = stringHash
|
||||
var BytesHash = bytesHash
|
||||
var Int32Hash = int32Hash
|
||||
var Int64Hash = int64Hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue