Commit 18ab35f7 authored by Shenghou Ma's avatar Shenghou Ma

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
parent 24db8816
...@@ -37,13 +37,15 @@ const ( ...@@ -37,13 +37,15 @@ const (
alg_max alg_max
) )
const nacl = GOOS == "nacl"
var use_aeshash bool var use_aeshash bool
// in asm_*.s // in asm_*.s
func aeshash(p unsafe.Pointer, s uintptr, h uintptr) uintptr func aeshash(p unsafe.Pointer, s uintptr, h uintptr) uintptr
func memhash(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) return aeshash(p, s, h)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment