github.com/ethw3/go-ethereuma@v0.0.0-20221013053120-c14602a4c23c/crypto/bn256/cloudflare/gfp_decl.go (about) 1 //go:build (amd64 && !generic) || (arm64 && !generic) 2 // +build amd64,!generic arm64,!generic 3 4 package bn256 5 6 // This file contains forward declarations for the architecture-specific 7 // assembly implementations of these functions, provided that they exist. 8 9 import ( 10 "golang.org/x/sys/cpu" 11 ) 12 13 //nolint:varcheck,unused,deadcode 14 var hasBMI2 = cpu.X86.HasBMI2 15 16 // go:noescape 17 func gfpNeg(c, a *gfP) 18 19 //go:noescape 20 func gfpAdd(c, a, b *gfP) 21 22 //go:noescape 23 func gfpSub(c, a, b *gfP) 24 25 //go:noescape 26 func gfpMul(c, a, b *gfP)