mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Detect and enable LSX/LASX on LoongArch based on compiler predefined macros.
This commit is contained in:
+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