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:
Shenghou Ma 2014-08-06 00:24:11 -04:00
parent 24db881689
commit 18ab35f7ba

View file

@ -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)
}