Blame SOURCES/boost-1.76.0-fix_multiprecision_issue_419-ppc64le.patch

9ffe34
From d1343f28dcbe25b100b082b34775bd92ead4602c Mon Sep 17 00:00:00 2001
9ffe34
From: jzmaddock <john@johnmaddock.co.uk>
9ffe34
Date: Tue, 25 Jan 2022 09:27:40 +0000
9ffe34
Subject: [PATCH] Update gcc Intel intrinsic usage config. Fixes
9ffe34
 https://github.com/boostorg/multiprecision/issues/419.
9ffe34
9ffe34
---
9ffe34
 include/boost/multiprecision/cpp_int/intel_intrinsics.hpp | 6 +++++-
9ffe34
 1 file changed, 5 insertions(+), 1 deletion(-)
9ffe34
9ffe34
diff --git a/include/boost/multiprecision/cpp_int/intel_intrinsics.hpp b/include/boost/multiprecision/cpp_int/intel_intrinsics.hpp
9ffe34
index eb4624bb4..37717cd51 100644
9ffe34
--- a/include/boost/multiprecision/cpp_int/intel_intrinsics.hpp
9ffe34
+++ b/include/boost/multiprecision/cpp_int/intel_intrinsics.hpp
9ffe34
@@ -19,7 +19,11 @@
9ffe34
 // If this is GCC/clang, then check that the actual intrinsic exists:
9ffe34
 //
9ffe34
 #if defined(__has_builtin) && defined(__GNUC__)
9ffe34
-#if !__has_builtin(__builtin_ia32_addcarryx_u64) && defined(BOOST_MP_HAS_IMMINTRIN_H) && !(defined(BOOST_GCC) && (__GNUC__ >= 9))
9ffe34
+#if !__has_builtin(__builtin_ia32_addcarryx_u64) && defined(BOOST_MP_HAS_IMMINTRIN_H) \
9ffe34
+   && !(defined(BOOST_GCC) && (__GNUC__ >= 9) \
9ffe34
+      && (defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)\
9ffe34
+          || defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_AMD64) \
9ffe34
+          || defined(_M_X64) || defined(__amd64__) || defined(_M_X64)))
9ffe34
 #undef BOOST_MP_HAS_IMMINTRIN_H
9ffe34
 #endif
9ffe34
 #elif defined(BOOST_MP_HAS_IMMINTRIN_H) && defined(__GNUC__) && !(defined(BOOST_GCC) && (__GNUC__ >= 9))