github.com/cloudflare/circl@v1.5.0/ecc/fourq/fp_amd64.go (about) 1 //go:build amd64 && !purego 2 // +build amd64,!purego 3 4 package fourq 5 6 import ( 7 "golang.org/x/sys/cpu" 8 ) 9 10 var hasBMI2 = cpu.X86.HasBMI2 //nolint 11 12 //go:noescape 13 func fpMod(c *Fp) 14 15 //go:noescape 16 func fpAdd(c, a, b *Fp) 17 18 //go:noescape 19 func fpSub(c, a, b *Fp) 20 21 //go:noescape 22 func fpMul(c, a, b *Fp) 23 24 //go:noescape 25 func fpSqr(c, a *Fp) 26 27 //go:noescape 28 func fpHlf(c, a *Fp)