Merge pull request #712 from gzliudan/fix-sa9009

crypto/bn256: fix staticcheck warning SA9009: ineffectual go compiler directive
This commit is contained in:
Daniel Liu 2024-10-30 21:11:16 +08:00 committed by GitHub
commit 8f79376ef7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,4 @@
//go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64,!generic arm64,!generic
package bn256
@ -9,10 +10,10 @@ import (
"golang.org/x/sys/cpu"
)
//nolint:varcheck
//nolint:varcheck,unused,deadcode
var hasBMI2 = cpu.X86.HasBMI2
// go:noescape
//go:noescape
func gfpNeg(c, a *gfP)
//go:noescape