Skip to content

Commit e8e5077

Browse files
committed
Fix xmm converion on msvc
1 parent 1057521 commit e8e5077

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/xsimd/types/xsimd_int_conversion.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ namespace xsimd
170170

171171
inline __m128i xsimd_cvtepi64_epi32(__m256i a)
172172
{
173-
__m128i hi = _mm256_extractf128_si256(a, 1);
174-
__m128i lo = _mm256_castsi256_si128(a);
175-
return (__m128i)_mm_shuffle_ps((__m128)lo, (__m128)hi, _MM_SHUFFLE(2, 0, 2, 0));
173+
__m128 hi = _mm_castsi128_ps(_mm256_extractf128_si256(a, 1));
174+
__m128 lo = _mm_castsi128_ps(_mm256_castsi256_si128(a));
175+
return _mm_castps_si128(_mm_shuffle_ps(lo, hi, _MM_SHUFFLE(2, 0, 2, 0)));
176176
}
177177
}
178178
}

0 commit comments

Comments
 (0)