blob: f701d6ae2100f0b3c28ba6b8bc627563197d8ddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
diff --git a/vendor/github.com/aead/poly1305/poly1305_amd64.go b/vendor/github.com/aead/poly1305/poly1305_amd64.go
index cd1a717..41b630f 100644
--- a/vendor/github.com/aead/poly1305/poly1305_amd64.go
+++ b/vendor/github.com/aead/poly1305/poly1305_amd64.go
@@ -7,13 +7,11 @@
package poly1305
import (
+ "golang.org/x/sys/cpu"
"io"
)
-var useAVX2 = supportsAVX2()
-
-//go:noescape
-func supportsAVX2() bool
+var useAVX2 = cpu.X86.HasAVX2
//go:noescape
func initialize(state *[7]uint64, key *[32]byte)
|