mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-29 13:18:36 +01:00
Merge pull request #20599 from KatyushaScarlet/upstream
Detect and enable LSX/LASX on LoongArch based on compiler predefined macros.
This commit is contained in:
1 file changed
+8
-2
+8
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user