scalar_generic.go raw

   1  //go:build !amd64 && !js && !wasm && !tinygo && !wasm32
   2  
   3  package p256k1
   4  
   5  // Generic stub implementations for non-AMD64 architectures.
   6  // These simply forward to the pure Go implementations.
   7  
   8  func scalarMulAVX2(r, a, b *Scalar) {
   9  	r.mulPureGo(a, b)
  10  }
  11  
  12  func scalarAddAVX2(r, a, b *Scalar) {
  13  	r.addPureGo(a, b)
  14  }
  15  
  16  func scalarSubAVX2(r, a, b *Scalar) {
  17  	r.subPureGo(a, b)
  18  }
  19