mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
compiler: implement complex division
This is hard to do correctly, so copy the relevant files from the Go compiler itself. For related discussions: * https://github.com/golang/go/issues/14644 * https://github.com/golang/go/issues/29846
This commit is contained in:
committed by
Ron Evans
parent
d7460b945e
commit
4ae4ef5e12
Vendored
+2
@@ -26,6 +26,8 @@
|
||||
complex64 add: (+2.000000e+000+1.000000e+001i)
|
||||
complex64 sub: (+8.000000e+000+1.000000e+001i)
|
||||
complex64 mul: (-1.500000e+001+2.000000e+000i)
|
||||
complex64 div: (-1.666667e+000+7.333333e+000i)
|
||||
complex128 add: (-3.000000e+000+8.000000e+000i)
|
||||
complex128 sub: (-7.000000e+000+8.000000e+000i)
|
||||
complex128 mul: (-1.000000e+001+1.000000e+001i)
|
||||
complex128 div: (-2.500000e+000+7.000000e+000i)
|
||||
|
||||
Reference in New Issue
Block a user