From 94eb829d082b9c53f2e850ad9a0f14671055674a Mon Sep 17 00:00:00 2001 From: paboyle Date: Thu, 13 Apr 2017 08:40:44 +0100 Subject: [PATCH] Align cast fixed for __mm128i gcc complained --- 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 89eb7daa..b43c0628 100644 --- a/lib/simd/Grid_sse4.h +++ b/lib/simd/Grid_sse4.h @@ -343,7 +343,7 @@ namespace Optimization { } static inline void HtoS (__m128i h,__m128 &sa,__m128 &sb) { sa = _mm_cvtph_ps(h); - h = (__m128)_mm_alignr_epi32((__m128i)h,(__m128i)h,2); + h = (__m128i)_mm_alignr_epi32((__m128i)h,(__m128i)h,2); sb = _mm_cvtph_ps(h); } static inline __m128 DtoS (__m128d a,__m128d b) {