]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add RISC-V 64-bit architecture detection 4525/head
author黄尚诚10330306 <huang.shangcheng@zte.com.cn>
Mon, 3 Nov 2025 08:37:05 +0000 (16:37 +0800)
committer黄尚诚10330306 <huang.shangcheng@zte.com.cn>
Mon, 3 Nov 2025 08:37:05 +0000 (16:37 +0800)
programs/platform.h

index e2cc1c3e65f6c6d6a9e49948ca577520acbdb0a7..9f1c968f40ff367adc2b132243110a811ac560a5 100644 (file)
@@ -35,6 +35,7 @@
   || defined __x86_64__ || 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(__riscv) && __riscv_xlen == 64)                                                                       /* RISC-V 64-bit */ \
   || defined _LP64 || defined __LP64__ /* NetBSD, OpenBSD */ || defined __64BIT__ /* AIX */ || defined _ADDR64 /* Cray */               \
   || (defined __SIZEOF_POINTER__ && __SIZEOF_POINTER__ == 8) /* gcc */
 #  if !defined(__64BIT__)