blake2b: fix build on non-amd64 platforms

Change-Id: Ib9ebb1a2eff4b61f60453086be5c63ac7af1f7fc
Reviewed-on: https://go-review.googlesource.com/34672
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@golang.org>
This commit is contained in:
Mikio Hara
2016-12-21 23:57:47 +00:00
committed by Adam Langley
parent f5719d2458
commit f6b343c37c
6 changed files with 24 additions and 19 deletions
+4 -4
View File
@@ -6,12 +6,12 @@
package blake2b
var useAVX2 = false
var useAVX = false
var useSSE4 = supportSSE4()
func init() {
useSSE4 = supportsSSE4()
}
//go:noescape
func supportSSE4() bool
func supportsSSE4() bool
//go:noescape
func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte)