On Thu, 6 Feb 2025, LIU Hao wrote:
在 2025-02-06 20:42, Martin Storsjö 写道:
Right - but here I would very much like to _not_ implement this in
assembly; we have a handful of other similar functions, e.g. exp2(x) ->
pow(2, x) and similar, where it would be nice if we could just avoid
unnecessary assembly.
So would you feel ok with doing sincos() here with __MINGW_ASM_CALL(), as
practical Clang doesn't seem to break it at the moment, even though it in
theory could do that?
I think it's fine to implement this function in assembly.
Ok, fair enough.
I was bitten by Clang's `__asm__` before so I don't really recommend it
unless we know for sure that optimization is safe.
Oh - specifically around __asm__ for redirecting functions to a specific
symbol, or for inline assembly? (We do rely on __asm__ for function
redirects a fair bit in the headers, for stdio function redirects
already.)
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public