x86 abi for complex.

Anders Magnusson <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.