gitee.com/quant1x/num@v0.3.2/asm/c2goasm/test/MultiplyAndAdd_amd64.go (about)

     1  //go:build !noasm && !appengine
     2  // +build !noasm,!appengine
     3  
     4  package c2goasmtest
     5  
     6  import (
     7  	"unsafe"
     8  )
     9  
    10  //go:noescape
    11  func _MultiplyAndAdd(vec1, vec2, vec3, result unsafe.Pointer)
    12  
    13  func MultiplyAndAdd(f1, f2, f3 *[8]float32) [8]float32 {
    14  
    15  	_f4 := [8]float32{}
    16  
    17  	_MultiplyAndAdd(unsafe.Pointer(f1), unsafe.Pointer(f2), unsafe.Pointer(f3), unsafe.Pointer(&_f4))
    18  
    19  	return _f4
    20  }