Re: [Mingw-w64-public] [PATCH] crt: Speedup __mingw_has_sse by storing cpuid result

2024-10-21 Thread Morilli
> Do you think it's acceptable to drop this check, assuming SSE is available > everywhere on x86? Most likely yes. The reason I didn't do this here is because this explicit check was intentionally put there (in f3ff0bcc88696e00d40cef4fe913160e1cca6370). Given, this was 15 years ago, so perhaps th

[Mingw-w64-public] [PATCH] crt: Speedup __mingw_has_sse by storing cpuid result

2024-10-19 Thread Morilli
This speeds up all floating-point rounding and exception functions by only querying cpuid once and storing its result. This helps when such functions are repeatedly called. This fixes https://sourceforge.net/p/mingw-w64/bugs/995/ . Signed-off-by: Moritz Bender <35152647+mori...@users.noreply.githu