cmake: added configuration options for AVX2, AVX512F, SSE4.1, and SSE4.2

adjusted SDL_intrin.h and testautomation_intrinsics.c accordingly.
This commit is contained in:
Ozkan Sezer authored and Ozkan Sezer committed 2023-03-21 23:03:02 +03:00
1 parent feec1305c6
commit 6c9780720b
4 files changed
+137 -34

No files matched your search

+4
View File
@@ -144,6 +144,10 @@ _m_prefetch(void *__P)
# define SDL_AVX_INTRINSICS 1
# include <immintrin.h>
# endif
# if (defined(_MSC_VER) || defined(__AVX__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_AVX2)
# define SDL_AVX2_INTRINSICS 1
# include <immintrin.h>
# endif
# if (defined(_MSC_VER) || defined(__AVX512F__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_AVX512F)
# define SDL_AVX512F_INTRINSICS 1
# include <immintrin.h>