2021-08-25 11:46:29 -05:00
|
|
|
//go:build (amd64 && !generic) || (arm64 && !generic)
|
2018-03-19 11:13:54 -05: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 05:46:52 -05:00
|
|
|
import (
|
|
|
|
"golang.org/x/sys/cpu"
|
|
|
|
)
|
|
|
|
|
2022-06-13 09:24:45 -05:00
|
|
|
//nolint:varcheck,unused,deadcode
|
2018-08-09 05:46:52 -05:00
|
|
|
var hasBMI2 = cpu.X86.HasBMI2
|
|
|
|
|
2024-03-12 03:49:53 -05:00
|
|
|
//go:noescape
|
2018-03-19 11:13:54 -05:00
|
|
|
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)
|