mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-07 07:50:58 +00:00
build fix for non-x86 targets.
This commit is contained in:
parent
79513afc19
commit
41c693dc25
2 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,7 @@ _m_prefetch(void *__P)
|
||||||
#if defined(__loongarch_asx) && !defined(SDL_DISABLE_LASX)
|
#if defined(__loongarch_asx) && !defined(SDL_DISABLE_LASX)
|
||||||
#include <lasxintrin.h>
|
#include <lasxintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
|
||||||
#if (defined(__AVX__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_AVX)
|
#if (defined(__AVX__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_AVX)
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -128,5 +129,6 @@ _m_prefetch(void *__P)
|
||||||
#if (defined(__SSE3__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_SSE3)
|
#if (defined(__SSE3__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_SSE3)
|
||||||
#include <pmmintrin.h>
|
#include <pmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif /**/
|
||||||
|
|
||||||
#endif /* SDL_intrin_h_ */
|
#endif /* SDL_intrin_h_ */
|
||||||
|
|
|
@ -194,6 +194,8 @@
|
||||||
#define HAVE_NEON_INTRINSICS 1
|
#define HAVE_NEON_INTRINSICS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
|
||||||
|
|
||||||
#if (defined(__MMX__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_MMX)
|
#if (defined(__MMX__) || defined(SDL_HAS_TARGET_ATTRIBS)) && !defined(SDL_DISABLE_MMX)
|
||||||
#define HAVE_MMX_INTRINSICS 1
|
#define HAVE_MMX_INTRINSICS 1
|
||||||
#endif
|
#endif
|
||||||
|
@ -214,6 +216,8 @@
|
||||||
#define HAVE_AVX_INTRINSICS 1
|
#define HAVE_AVX_INTRINSICS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* x86/x64 */
|
||||||
|
|
||||||
#if defined(__loongarch_sx) && !defined(SDL_DISABLE_LSX)
|
#if defined(__loongarch_sx) && !defined(SDL_DISABLE_LSX)
|
||||||
#define HAVE_LSX_INTRINSICS 1
|
#define HAVE_LSX_INTRINSICS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue