On 22.10.2024 17:17, LIU Hao wrote:
在 2024-10-22 22:18, Jacek Caban 写道:
Style-wise, I would perhaps prefer a solution that uses fewer
#ifdefs. We could for example change __mingw_has_sse to always return
true when it's defined. It would limit optimization opportunities for
the compiler, so perhaps we could have it in a header and make it a
trivial inline in case __SSE__ is defined? Anyway, the current patch
matches how similar things are done in mingw-w64, so I won't insist
on that.
Even with that patch, the original patch caching cpuid result would
still be beneficial for cases when __SSE__ is not defined.
Here's an updated patch.
Looks good to me, thanks!
Jacek
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public