go-ethereum/crypto/bn256/cloudflare/gfp_decl.go
Felix Lange cbf0b5bc92
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run
go.mod, build: require go 1.24 and upgrade linter (#32584)
2025-09-11 13:07:04 +02:00

26 lines
501 B
Go

//go:build (amd64 && !generic) || (arm64 && !generic)
// +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"
)
//nolint:unused
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)