|
@@ -99,14 +99,15 @@ _m_prefetch(void *__P)
|
|
|
# define SDL_TARGETING(x)
|
|
|
#endif
|
|
|
|
|
|
-#if defined(__loongarch_sx) && !defined(SDL_DISABLE_LSX)
|
|
|
-# define SDL_LSX_INTRINSICS 1
|
|
|
-# include <lsxintrin.h>
|
|
|
-#endif
|
|
|
-
|
|
|
-#if defined(__loongarch_asx) && !defined(SDL_DISABLE_LASX)
|
|
|
-# define SDL_LASX_INTRINSICS 1
|
|
|
-# include <lasxintrin.h>
|
|
|
+#if defined(__loongarch64)
|
|
|
+# ifndef SDL_DISABLE_LSX
|
|
|
+# define SDL_LSX_INTRINSICS 1
|
|
|
+# include <lsxintrin.h>
|
|
|
+# endif
|
|
|
+# ifndef SDL_DISABLE_LASX
|
|
|
+# define SDL_LASX_INTRINSICS 1
|
|
|
+# include <lasxintrin.h>
|
|
|
+# endif
|
|
|
#endif
|
|
|
|
|
|
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
|