ipld-eth-server/vendor/github.com/aristanetworks/goarista/key/hash.go
Matt K 293dd2e848 Add vendor dir (#16) (#4)
* Add vendor dir so builds dont require dep

* Pin specific version go-eth version
2018-01-29 13:44:18 -06:00

24 lines
569 B
Go

// Copyright (c) 2016 Arista Networks, Inc.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the COPYING file.
package key
import "unsafe"
//go:noescape
//go:linkname strhash runtime.strhash
func strhash(a unsafe.Pointer, h uintptr) uintptr
func _strhash(s string) uintptr {
return strhash(unsafe.Pointer(&s), 0)
}
//go:noescape
//go:linkname nilinterhash runtime.nilinterhash
func nilinterhash(a unsafe.Pointer, h uintptr) uintptr
func _nilinterhash(v interface{}) uintptr {
return nilinterhash(unsafe.Pointer(&v), 0)
}