void-packages/srcpkgs/fflas-ffpack/patches/357.patch

36 lines
971 B
Diff

From 9b6083c663096e9ca85775b79f1f27c848dbeb98 Mon Sep 17 00:00:00 2001
From: Cyril Bouvier <cyril.bouvier@lirmm.fr>
Date: Fri, 17 Dec 2021 10:27:02 +0100
Subject: [PATCH] Fix SimdChooser: on not x86_64 machines its value could be an
nonexistant struct
---
fflas-ffpack/fflas/fflas_simd.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/fflas-ffpack/fflas/fflas_simd.h b/fflas-ffpack/fflas/fflas_simd.h
index bf5d30211..84ced0fd8 100644
--- a/fflas-ffpack/fflas/fflas_simd.h
+++ b/fflas-ffpack/fflas/fflas_simd.h
@@ -384,6 +384,20 @@ struct SimdChooser<T, true, true> // integral number
#endif
};
+#ifndef __x86_64__
+template <>
+struct SimdChooser<uint64_t, true, true>
+{
+ using value = NoSimd<uint64_t>;
+};
+
+template <>
+struct SimdChooser<int64_t, true, true>
+{
+ using value = NoSimd<int64_t>;
+};
+#endif
+
template <class T> using Simd = typename SimdChooser<T>::value;
// template <class T> struct SimdChooser<T, true> {