- Fixed x86-32 C ABI for complex number return values.

- Removed unused code from the ABI class.
This commit is contained in:
Tomas Lindquist Olsen
2009-03-01 19:01:05 +01:00
parent 757601af09
commit 61dfb11bc5
7 changed files with 110 additions and 36 deletions

View File

@@ -131,7 +131,10 @@ extern(C) cfloat cf_C()
{
version(X86)
{
asm { fld1; fld two_f; }
asm {
mov EAX, [one_f];
mov EDX, [two_f];
}
}
else version (X86_64)
{
@@ -180,8 +183,8 @@ extern(C) cfloat cf2_C()
asm
{
naked;
fld1;
fld two_f;
mov EAX, [one_f];
mov EDX, [two_f];
ret;
}
}