tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

x86 abi for complex.



Hi,

I looked at the "complex" abi code generated on NetBSD/i386 for function calls, and noticed a slight discrepancy.
Someone may know what was the thinking here?

For functions returning double or long double complex, the complex numbers are handled as returning of structs with the same content. But; for functions returning float complex, the return values are returned in eax/edx and not as the corresponding struct.


What is the reason for;
1) return floats in eax/edx instead as a struct?
2) not just returning all complex numbers on the floating point stack?

-- Ragge


Home | Main Index | Thread Index | Old Index