libc complex64 support

This commit is contained in:
xushiwei
2024-06-20 10:22:35 +08:00
parent 94f61b0a0c
commit 5d957a6b7c
5 changed files with 152 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
package main
import (
"github.com/goplus/llgo/c/math/cmplx"
)
func main() {
re := float32(3.0)
im := float32(4.0)
c := complex(re, im)
println("abs(3+4i):", cmplx.Absf(c))
}