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