gfp_decl.go 520 B

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