gfp_decl.go 449 B

123456789101112131415161718192021222324
  1. // +build amd64,!generic arm64,!generic
  2. package bn256
  3. // This file contains forward declarations for the architecture-specific
  4. // assembly implementations of these functions, provided that they exist.
  5. import (
  6. "golang.org/x/sys/cpu"
  7. )
  8. //nolint:varcheck
  9. var hasBMI2 = cpu.X86.HasBMI2
  10. // go:noescape
  11. func gfpNeg(c, a *gfP)
  12. //go:noescape
  13. func gfpAdd(c, a, b *gfP)
  14. //go:noescape
  15. func gfpSub(c, a, b *gfP)
  16. //go:noescape
  17. func gfpMul(c, a, b *gfP)