From a3172b345597a89a134dca68266b621cfffa6a06 Mon Sep 17 00:00:00 2001 From: paboyle Date: Sun, 18 Dec 2016 02:07:45 +0000 Subject: [PATCH] Precision error --- lib/simd/Grid_sse4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simd/Grid_sse4.h b/lib/simd/Grid_sse4.h index abd688ab..398a8691 100644 --- a/lib/simd/Grid_sse4.h +++ b/lib/simd/Grid_sse4.h @@ -194,7 +194,7 @@ namespace Optimization { __m128 ymm0 = _mm_shuffle_ps(a,a,_MM_SELECT_FOUR_FOUR(2,2,0,0)); // ymm0 <- ar ar, _mm_add_ps(_mm_mul_ps( ymm0, b),c); } - inline __m128d operator()(__m128d a, __m128d b, __m128 c){ + inline __m128d operator()(__m128d a, __m128d b, __m128d c){ __m128d ymm0 = _mm_shuffle_pd( a, a, 0x0 ); return _mm_add_pd(_mm_mul_pd( ymm0, b),c); }