diff --git a/patches/vectorclass/0001-Add-an-alternative-implementation-of-horizontal_add-.patch b/patches/vectorclass/0001-Alternative-horizontal_add-with-Vec8d.patch similarity index 74% rename from patches/vectorclass/0001-Add-an-alternative-implementation-of-horizontal_add-.patch rename to patches/vectorclass/0001-Alternative-horizontal_add-with-Vec8d.patch index 10f1cd949df56339c25682fb578343e16774ceef..7a4be4ba5a1d038739df79bc486598025e0b0f15 100644 --- a/patches/vectorclass/0001-Add-an-alternative-implementation-of-horizontal_add-.patch +++ b/patches/vectorclass/0001-Alternative-horizontal_add-with-Vec8d.patch @@ -1,26 +1,28 @@ -From d46b04686c44bea537773c99e5001482972a454a Mon Sep 17 00:00:00 2001 +From c2f8b676ba975359856a6c18066d2bb0a2c08ac9 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> -Date: Thu, 12 Oct 2017 15:14:48 +0200 -Subject: [PATCH] Add an alternative implementation of horizontal_add for Vec8d +Date: Thu, 30 Nov 2017 11:19:12 +0100 +Subject: [PATCH] Alternative horizontal_add with Vec8d --- - vectorf512.h | 16 +++++++++++----- - 1 file changed, 11 insertions(+), 5 deletions(-) + vectorf512.h | 18 +++++++++++++----- + 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/vectorf512.h b/vectorf512.h -index 0845d12..fb1a4d4 100644 +index 0845d12..078ffb5 100644 --- a/vectorf512.h +++ b/vectorf512.h -@@ -1339,13 +1339,19 @@ static inline Vec8d if_mul (Vec8db const & f, Vec8d const & a, Vec8d const & b) +@@ -1339,13 +1339,21 @@ static inline Vec8d if_mul (Vec8db const & f, Vec8d const & a, Vec8d const & b) // General arithmetic functions, etc. ++#if __GNUC__ < 7 +extern __inline double +__attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) +_mm512_cvtsd_f64 (__m512d __A) +{ + return __A[0]; +} ++#endif // Horizontal add: Calculates the sum of all vector elements. -static inline double horizontal_add (Vec8d const & a) {