Reset the FPU stack on Windows to work around a bug in Windows10.19041

This commit is contained in:
Martin Kroeker 2020-10-12 19:04:01 +02:00 committed by GitHub
parent f0883740e4
commit fac9afe645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1502,6 +1502,10 @@ void CONSTRUCTOR gotoblas_init(void) {
gotoblas_memory_init();
#endif
#if defined(OS_WINDOWS) && defined(HAVE_MMX)
__asm__ __volatile__ ("emms");
#endif
//#if defined(OS_LINUX)
#if 0
struct rlimit curlimit;
@ -3104,6 +3108,9 @@ void CONSTRUCTOR gotoblas_init(void) {
gotoblas_memory_init();
#endif
#if defined(OS_WINDOWS) && defined(HAVE_MMX)
__asm__ __volatile__ ("emms");
#endif
//#if defined(OS_LINUX)
#if 0
struct rlimit curlimit;