Henri Verbeet hverbeet@codeweavers.com writes:
The attribute is certainly ugly. Also it seems to me you are doing this the wrong way around; you don't want to add a return parameter, you want to avoid one. Check how div() is handled.
On 4 September 2014 15:27, Alexandre Julliard julliard@winehq.org wrote:
The attribute is certainly ugly.
Well, no argument there. Do we have any alternatives? We could of course also just change the function prototype, but then that would break source compatibility.
No, the issue is that gcc returns the result in eax:edx, but native expects a return parameter, so the reverse of MSVCRT_div(). It's most obvious when running d2d1 tests (not submitted yet) compiled with mingw against Windows.
Henri Verbeet hverbeet@gmail.com writes:
Mingw implements the Windows convention, so it's different from plain gcc. I'm not sure your test means what you think it means.