summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorzhaixiaojuan <zhaixiaojuan@loongson.cn>2023-02-13 03:47:21 (GMT)
committerzhaixiaojuan <zhaixiaojuan@loongson.cn>2023-02-13 03:47:21 (GMT)
commit1a3f35c51dec726de6487c9ee90f7d94abe19b81 (patch)
tree1b855489cdfdb82667112fcb75d9006affc543ba /programs
parentecf92d0897587c0f641df9db83c910fd236cb18a (diff)
downloadlz4-1a3f35c51dec726de6487c9ee90f7d94abe19b81.zip
lz4-1a3f35c51dec726de6487c9ee90f7d94abe19b81.tar.gz
lz4-1a3f35c51dec726de6487c9ee90f7d94abe19b81.tar.bz2
Add 64-bit detection for LoongArch
Diffstat (limited to 'programs')
-rw-r--r--programs/platform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/platform.h b/programs/platform.h
index 43a171b..38940c3 100644
--- a/programs/platform.h
+++ b/programs/platform.h
@@ -48,6 +48,7 @@ extern "C" {
|| defined __x86_64__s || defined _M_X64 /* x86 64-bit */ \
|| defined __arm64__ || defined __aarch64__ || defined __ARM64_ARCH_8__ /* ARM 64-bit */ \
|| (defined __mips && (__mips == 64 || __mips == 4 || __mips == 3)) /* MIPS 64-bit */ \
+ || defined __loongarch64 /* LoongArch 64-bit */ \
|| defined _LP64 || defined __LP64__ /* NetBSD, OpenBSD */ || defined __64BIT__ /* AIX */ || defined _ADDR64 /* Cray */ \
|| (defined __SIZEOF_POINTER__ && __SIZEOF_POINTER__ == 8) /* gcc */
# if !defined(__64BIT__)