mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
runtime: add comments about the hash functions
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
//go:build runtime_memhash_tsip
|
||||
// +build runtime_memhash_tsip
|
||||
|
||||
// This is the tsip hash developed by Damian Gryski, based on ideas from SipHash.
|
||||
// It is slower than leveldb's hash, but should be "stronger".
|
||||
|
||||
// https://en.wikipedia.org/wiki/SipHash
|
||||
// https://github.com/veorq/SipHash
|
||||
// https://github.com/dgryski/tsip
|
||||
|
||||
package runtime
|
||||
|
||||
import (
|
||||
@@ -26,8 +33,6 @@ func ptrToSlice(ptr unsafe.Pointer, n uintptr) []byte {
|
||||
return p
|
||||
}
|
||||
|
||||
// tsip hash -- github.com/dgryski/tsip
|
||||
|
||||
type sip struct {
|
||||
v0, v1 uint64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user