Merge pull request #20599 from KatyushaScarlet/upstream

Detect and enable LSX/LASX on LoongArch based on compiler predefined macros.
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2025-07-06 19:59:51 +02:00
commit 32e05485c5
1 file changed
+8 -2
+8 -2
View File
@@ -81,9 +81,15 @@
//https://github.com/gcc-mirror/gcc/blob/master/gcc/config/loongarch/loongarch-c.cc
#define PPSSPP_ARCH_LOONGARCH64 1
#define PPSSPP_ARCH_64BIT 1
#define PPSSPP_ARCH_LOONGARCH64_LSX 1
#endif
#if defined(__loongarch_asx)
#define PPSSPP_ARCH_LOONGARCH64_LASX 1
#endif
#if defined(__loongarch_asx) || defined(__loongarch_sx)
#define PPSSPP_ARCH_LOONGARCH64_LSX 1
#endif
#endif
// PLATFORM defines
#if defined(_WIN32)
// Covers both 32 and 64bit Windows