2021-08-25 19:46:29 +03:00
|
|
|
//go:build (amd64 && !generic) || (arm64 && !generic)
|
2018-03-19 19:13:54 +03:00
|
|
|
// +build amd64,!generic arm64,!generic
|
|
|
|
|
|
|
|
package bn256
|
|
|
|
|
|
|
|
// This file contains forward declarations for the architecture-specific
|
|
|
|
// assembly implementations of these functions, provided that they exist.
|
|
|
|
|
2018-08-09 13:46:52 +03:00
|
|
|
import (
|
|
|
|
"golang.org/x/sys/cpu"
|
|
|
|
)
|
|
|
|
|
2022-06-13 17:24:45 +03:00
|
|
|
//nolint:varcheck,unused,deadcode
|
2018-08-09 13:46:52 +03:00
|
|
|
var hasBMI2 = cpu.X86.HasBMI2
|
|
|
|
|
2018-03-19 19:13:54 +03:00
|
|
|
// go:noescape
|
|
|
|
func gfpNeg(c, a *gfP)
|
|
|
|
|
|
|
|
//go:noescape
|
|
|
|
func gfpAdd(c, a, b *gfP)
|
|
|
|
|
|
|
|
//go:noescape
|
|
|
|
func gfpSub(c, a, b *gfP)
|
|
|
|
|
|
|
|
//go:noescape
|
|
|
|
func gfpMul(c, a, b *gfP)
|