2021-08-25 18:46:29 +02:00
|
|
|
//go:build (amd64 && !generic) || (arm64 && !generic)
|
2018-03-20 01:13:54 +09: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 16:24:45 +02:00
|
|
|
//nolint:varcheck,unused,deadcode
|
2018-08-09 13:46:52 +03:00
|
|
|
var hasBMI2 = cpu.X86.HasBMI2
|
|
|
|
|
2018-03-20 01:13:54 +09: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)
|