From 17c35f064086d9cddef11c747d0ce7ee130682bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 27 Nov 2017 10:26:38 +0100 Subject: [PATCH] fix simd --- libsrc/general/ngsimd.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/general/ngsimd.hpp b/libsrc/general/ngsimd.hpp index e013397a..97e92052 100644 --- a/libsrc/general/ngsimd.hpp +++ b/libsrc/general/ngsimd.hpp @@ -311,7 +311,7 @@ using std::fabs; template>::value, int>::type = 0> SIMD (const T & func) { - data = _mm_set_pd(func(3), func(2), func(1), func(0)); + data = _mm_set_pd(func(1), func(0)); } // only called if T is arithmetic (integral or floating point types)