github.com/Unheilbar/quorum@v1.0.0/crypto/bn256/cloudflare/gfp_decl.go (about)

     1  //go:build (amd64 && !generic) || (arm64 && !generic)
     2  // +build amd64,!generic arm64,!generic
     3  
     4  package bn256
     5  
     6  // This file contains forward declarations for the architecture-specific
     7  // assembly implementations of these functions, provided that they exist.
     8  import (
     9  	"golang.org/x/sys/cpu"
    10  )
    11  
    12  //nolint:varcheck,unused,deadcode
    13  var hasBMI2 = cpu.X86.HasBMI2
    14  
    15  // go:noescape
    16  func gfpNeg(c, a *gfP)
    17  
    18  //go:noescape
    19  func gfpAdd(c, a, b *gfP)
    20  
    21  //go:noescape
    22  func gfpSub(c, a, b *gfP)
    23  
    24  //go:noescape
    25  func gfpMul(c, a, b *gfP)