mirror of
https://github.com/golang/go
synced 2024-10-14 03:43:28 +00:00
runtime: disable aeshash on NaCl at compile time
Fixes build for nacl/386. LGTM=dave R=khr, bradfitz, dave, dan.kortschak, rsc CC=golang-codereviews https://golang.org/cl/121080043
This commit is contained in:
parent
24db881689
commit
18ab35f7ba
|
@ -37,13 +37,15 @@ const (
|
|||
alg_max
|
||||
)
|
||||
|
||||
const nacl = GOOS == "nacl"
|
||||
|
||||
var use_aeshash bool
|
||||
|
||||
// in asm_*.s
|
||||
func aeshash(p unsafe.Pointer, s uintptr, h uintptr) uintptr
|
||||
|
||||
func memhash(p unsafe.Pointer, s uintptr, h uintptr) uintptr {
|
||||
if use_aeshash {
|
||||
if !nacl && use_aeshash {
|
||||
return aeshash(p, s, h)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue