mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 20:13:40 +00:00
compiler: add support for complex add and sub
This is fairly trivial to add and follows the implementation of gc: https://github.com/golang/go/blob/170b8b4b12be50eeccbcdadb8523fb4fc670ca72/src/cmd/compile/internal/gc/ssa.go#L2179-L2192
This commit is contained in:
committed by
Ron Evans
parent
1113f9ec0c
commit
638bc17eeb
Vendored
+4
@@ -23,3 +23,7 @@
|
||||
(+2.000000e+000-2.000000e+000i)
|
||||
(+6.666667e-001-2.000000e+000i)
|
||||
(+6.666667e-001+1.200000e+000i)
|
||||
complex64 add: (+2.000000e+000+1.000000e+001i)
|
||||
complex64 sub: (+8.000000e+000+1.000000e+001i)
|
||||
complex128 add: (-3.000000e+000+8.000000e+000i)
|
||||
complex128 sub: (-7.000000e+000+8.000000e+000i)
|
||||
|
||||
Reference in New Issue
Block a user