From b0830163045fece89f989fed465908822f92ef0a Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 28 Apr 2025 07:58:09 +0200 Subject: [PATCH] Define WORD_SIZE_64 for more 64-bit arches This enables 64-bit detection for the following additional systems: - [PowerPC64 (little endian)](https://en.wikipedia.org/wiki/Ppc64) - [S390x](https://en.wikipedia.org/wiki/S390x) - [LoongArch64](https://en.wikipedia.org/wiki/LoongArch64) --- include/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/config.h b/include/config.h index 1ba436b5..e5b14cb7 100644 --- a/include/config.h +++ b/include/config.h @@ -172,7 +172,8 @@ /* 64bit arch MACRO */ #if (defined(__x86_64__) || defined(__arm64__) || defined(__aarch64__) || \ - (defined(__riscv) && __riscv_xlen == 64)) + (defined(__riscv) && __riscv_xlen == 64) || defined(__powerpc64le__) || \ + defined(__s390x__) || defined(__loongarch64)) #define WORD_SIZE_64 1 #endif