fix blake2b tests on non-amd64 machines (#3496)

Fix the TestHashes Test for non-amd64 machines
This commit is contained in:
Andreas Auernhammer
2016-12-26 02:03:08 +01:00
committed by Harshavardhana
parent cdc6c2d578
commit 6ee27daac1
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)