Re: x86 abi for complex.
Martin Husemann <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Feb 02, 2023 at 07:59:32PM +0100, Anders Magnusson wrote: > What is the reason for; > 1) return floats in eax/edx instead as a struct? Just guessing: consistency with other 64bit return values. > 2) not just returning all complex numbers on the floating point stack? Again guessing: %st(0) would not be enough and %st(1)..%st(7) are defined as scratch registers and to not have any role in function calls. But *why* this was defined, I have no idea. Martin