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 2023-03-21 14:55:32 +03:00 committed by Ozkan Sezer
parent feec1305c6
commit 6c9780720b
4 changed files with 137 additions and 34 deletions

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>