Browse Source

Don't disable clang avx instrinsics on win32 if __AVX__ is defined.

C.f.: https://github.com/libsdl-org/SDL/issues/4533
Ozkan Sezer 3 years ago
parent
commit
44a76710d1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/audio/SDL_audiocvt.c

+ 4 - 1
src/audio/SDL_audiocvt.c

@@ -47,7 +47,10 @@
 #define HAVE_AVX_INTRINSICS 1
 #endif
 #if defined __clang__
-# if (__clang_major__ < 5) || defined(_MSC_VER) || defined(__SCE__)
+# if (__clang_major__ < 5)
+#   undef HAVE_AVX_INTRINSICS
+# endif
+# if (defined(_MSC_VER) || defined(__SCE__)) && !defined(__AVX__)
 #   undef HAVE_AVX_INTRINSICS
 # endif
 #elif defined __GNUC__