Commit 44a76710d1a4f2bbcee47b14d4bdd8d75263d094

Ozkan Sezer 2021-08-11T12:55:50

Don't disable clang avx instrinsics on win32 if __AVX__ is defined. C.f.: https://github.com/libsdl-org/SDL/issues/4533

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c
index f422b2b..06ccce7 100644
--- a/src/audio/SDL_audiocvt.c
+++ b/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__