From e5b51677c516ccf2a78e2bc8e8d7cbfd396c93d1 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Thu, 15 Dec 2016 13:11:31 +0100 Subject: [PATCH] MacOS fix --- simgear/math/simd.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/math/simd.hxx b/simgear/math/simd.hxx index 088fb119..4a39bca6 100644 --- a/simgear/math/simd.hxx +++ b/simgear/math/simd.hxx @@ -583,7 +583,7 @@ namespace simd4 { // http://stackoverflow.com/questions/6996764/fastest-way-to-do-horizontal-float-vector-sum-on-x86 inline double hsum_pd_sse(const __m128d vd[2]) { - __m128 undef = _mm_undefined_ps(); + __m128 undef = undef; // Max doesn't have _mm_undefined_ps(); __m128 shuftmp1 = _mm_movehl_ps(undef, _mm_castpd_ps(vd[0])); __m128 shuftmp2 = _mm_movehl_ps(undef, _mm_castpd_ps(vd[1])); __m128d shuf1 = _mm_castps_pd(shuftmp1);