sparc: Add support for complex types
This commit is contained in:
@@ -31,6 +31,7 @@ if { [istarget aarch64*]
|
||||
|| [istarget arm*]
|
||||
|| [istarget i?86*]
|
||||
|| [istarget s390*]
|
||||
|| [istarget sparc*]
|
||||
|| [istarget x86_64*] } {
|
||||
run-many-tests $ctlist ""
|
||||
} else {
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
|
||||
_Complex int f_complex(_Complex int c, int x, int *py)
|
||||
{
|
||||
c = -(2 * creal (c)) + (cimag (c) + 1)* I;
|
||||
__real__ c = -2 * __real__ c;
|
||||
__imag__ c = __imag__ c + 1;
|
||||
*py += x;
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user