mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
25 lines
446 B
Go
25 lines
446 B
Go
//go: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.
|
|
|
|
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)
|