diff options
author | barry.wardell <barry.wardell@105869f7-3296-0410-a4ea-f4349344b45a> | 2012-03-02 13:25:57 +0000 |
---|---|---|
committer | barry.wardell <barry.wardell@105869f7-3296-0410-a4ea-f4349344b45a> | 2012-03-02 13:25:57 +0000 |
commit | b21da6f8ea2a34554be2f87b27eef895c888ccf4 (patch) | |
tree | 1ec66b5ac6772b556aad6a1cf60fb31d570d57d4 | |
parent | a0c390da144591eaecf75e965910835205dba23f (diff) |
Add missing casts.
git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/Vectors/trunk@54 105869f7-3296-0410-a4ea-f4349344b45a
-rw-r--r-- | src/vectors-4-SSE.h | 3 |
1 files changed, 2 insertions, 1 deletions
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)); \ }) |