From eac5b7ceef89daf44e6a1b2570aa0c7e9d7738bb Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Wed, 19 Jul 2023 16:45:05 +0200 Subject: [PATCH 1/2] Detecting PPC64/ARM64 CPUs --- README.md | 2 +- include/sdsl/bits.hpp | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f713acbc..c0226183 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Other compiler may work, but are not tested within the continuous integration. In general, the latest minor release of each listed major compiler version is supported. -* GCC 10, 11, 12 +* GCC 10, 11, 12, 13 * clang 11, 12, 13, 14 Tests are run with both C++20 and C++23. diff --git a/include/sdsl/bits.hpp b/include/sdsl/bits.hpp index 8fa7d4c6..bf110003 100644 --- a/include/sdsl/bits.hpp +++ b/include/sdsl/bits.hpp @@ -8,7 +8,17 @@ #ifndef INCLUDED_SDSL_BITS #define INCLUDED_SDSL_BITS +# GCC definitions +#if defined(__x86_64__) #include // IWYU pragma: keep +#endif +#if defined(__aarch64__) || defined(_M_ARM64) +#include +#endif +#if defined(__powerpc__) || defined(__powerpc64__) +#include +#endif + #include #include // for uint64_t uint32_t declaration #ifdef __SSE4_2__ From 45c365a6a5380a72c9716262967f7e16a11a1bd1 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Wed, 19 Jul 2023 17:37:58 +0200 Subject: [PATCH 2/2] Update include/sdsl/bits.hpp --- include/sdsl/bits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sdsl/bits.hpp b/include/sdsl/bits.hpp index bf110003..46fb5db7 100644 --- a/include/sdsl/bits.hpp +++ b/include/sdsl/bits.hpp @@ -8,7 +8,7 @@ #ifndef INCLUDED_SDSL_BITS #define INCLUDED_SDSL_BITS -# GCC definitions +// GCC definitions #if defined(__x86_64__) #include // IWYU pragma: keep #endif