Skip to content

Commit 3fee0db

Browse files
Robert-André MauchinAndreas Auernhammer
Robert-André Mauchin
authored and
Andreas Auernhammer
committed
replace custom CPU feature detection
1 parent 969857f commit 3fee0db

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

poly1305_amd64.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
package poly1305
88

99
import (
10+
"golang.org/x/sys/cpu"
1011
"io"
1112
)
1213

13-
var useAVX2 = supportsAVX2()
14-
15-
//go:noescape
16-
func supportsAVX2() bool
14+
var useAVX2 = cpu.X86.HasAVX2
1715

1816
//go:noescape
1917
func initialize(state *[7]uint64, key *[32]byte)

0 commit comments

Comments
 (0)