From b21da6f8ea2a34554be2f87b27eef895c888ccf4 Mon Sep 17 00:00:00 2001 From: "barry.wardell" Date: Fri, 2 Mar 2012 13:25:57 +0000 Subject: Add missing casts. git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/Vectors/trunk@54 105869f7-3296-0410-a4ea-f4349344b45a --- src/vectors-4-SSE.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vectors-4-SSE.h b/src/vectors-4-SSE.h index a84c9fd..46fc4da 100644 --- a/src/vectors-4-SSE.h +++ b/src/vectors-4-SSE.h @@ -373,7 +373,8 @@ static const union { CCTK_REAL4_VEC const x=x__; \ CCTK_REAL4_VEC const y=y__; \ CCTK_REAL4_VEC const z=z__; \ - CCTK_REAL4_VEC const mask = _mm_srai_epi32(x, 31); \ + CCTK_REAL4_VEC const mask = \ + (__m128)_mm_srai_epi32((__m128i)x, 31); \ /* (z & ~mask) | (y & mask) */ \ _mm_or_ps(_mm_andnot_ps(mask, z), _mm_and_ps(mask, y)); \ }) -- cgit v1.2.3