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"
|
|
|
|
)
|
|
|
|
|
|
|
|
//nolint:varcheck
|
|
|
|
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)
|