Browse Source

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

pull/2889/head
Martin Kroeker GitHub 5 years ago
parent
commit
fac9afe645
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      driver/others/memory.c

+ 7
- 0
driver/others/memory.c 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;


Loading…
Cancel
Save