2022-11-22 11:02:37 +08:00
|
|
|
//go:build (amd64 && !purego) || (arm64 && !purego)
|
|
|
|
// +build amd64,!purego arm64,!purego
|
2022-06-07 17:13:23 +08:00
|
|
|
|
2022-06-16 10:14:45 +08:00
|
|
|
package bn256
|
2022-06-07 17:13:23 +08:00
|
|
|
|
|
|
|
// This file contains forward declarations for the architecture-specific
|
|
|
|
// assembly implementations of these functions, provided that they exist.
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golang.org/x/sys/cpu"
|
|
|
|
)
|
|
|
|
|
|
|
|
var hasBMI2 = cpu.X86.HasBMI2
|
|
|
|
|
|
|
|
// 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)
|