mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
- Fixed x86-32 C ABI for complex number return values.
- Removed unused code from the ABI class.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user