summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2023-02-26 16:22:20 (GMT)
committerGitHub <noreply@github.com>2023-02-26 16:22:20 (GMT)
commit80dfdce2821faab75acb3e45c808c1444129eccb (patch)
tree1b855489cdfdb82667112fcb75d9006affc543ba
parentecf92d0897587c0f641df9db83c910fd236cb18a (diff)
parent1a3f35c51dec726de6487c9ee90f7d94abe19b81 (diff)
downloadlz4-80dfdce2821faab75acb3e45c808c1444129eccb.zip
lz4-80dfdce2821faab75acb3e45c808c1444129eccb.tar.gz
lz4-80dfdce2821faab75acb3e45c808c1444129eccb.tar.bz2
Merge pull request #1209 from zhaixiaojuan/dev
Add 64-bit detection for LoongArch
-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__)