Add Loongarch64 info (#203)

This commit is contained in:
fyl 2021-12-15 19:29:25 +08:00 committed by GitHub
parent f49139ed6e
commit eb57e0c21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,12 @@ MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
#define MY_CPU_32BIT #define MY_CPU_32BIT
#endif #endif
#if defined(__loongarch64)
#define MY_CPU_LOONGARCH64
#define MY_CPU_NAME "loongarch64"
#define MY_CPU_64BIT
#endif
#if defined(_M_IA64) \ #if defined(_M_IA64) \
|| defined(__ia64__) || defined(__ia64__)
@ -133,6 +139,7 @@ MY_CPU_LE_UNALIGN means that CPU is LITTLE ENDIAN and CPU supports unaligned mem
|| defined(MY_CPU_ARM_LE) \ || defined(MY_CPU_ARM_LE) \
|| defined(MY_CPU_ARM64_LE) \ || defined(MY_CPU_ARM64_LE) \
|| defined(MY_CPU_IA64_LE) \ || defined(MY_CPU_IA64_LE) \
|| defined(MY_CPU_LOONGARCH64) \
|| defined(__LITTLE_ENDIAN__) \ || defined(__LITTLE_ENDIAN__) \
|| defined(__ARMEL__) \ || defined(__ARMEL__) \
|| defined(__THUMBEL__) \ || defined(__THUMBEL__) \