diff options
author | zhaixiaojuan <zhaixiaojuan@loongson.cn> | 2023-02-13 03:47:21 (GMT) |
---|---|---|
committer | zhaixiaojuan <zhaixiaojuan@loongson.cn> | 2023-02-13 03:47:21 (GMT) |
commit | 1a3f35c51dec726de6487c9ee90f7d94abe19b81 (patch) | |
tree | 1b855489cdfdb82667112fcb75d9006affc543ba /programs | |
parent | ecf92d0897587c0f641df9db83c910fd236cb18a (diff) | |
download | lz4-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.h | 1 |
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__) |