bug #1069: fix AVX support on MSVC (use of non portable C-style cast)

This commit is contained in:
Gael Guennebaud
2015-09-28 10:08:26 +02:00
parent d16797cfc0
commit 75861f6650
2 changed files with 21 additions and 21 deletions

View File

@@ -43,7 +43,7 @@ template<> struct is_arithmetic<__m256d> { enum { value = true }; };
const Packet4d p4d_##NAME = pset1<Packet4d>(X)
#define _EIGEN_DECLARE_CONST_Packet8f_FROM_INT(NAME,X) \
const Packet8f p8f_##NAME = (__m256)pset1<Packet8i>(X)
const Packet8f p8f_##NAME = _mm256_castsi256_ps(pset1<Packet8i>(X))
#define _EIGEN_DECLARE_CONST_Packet8i(NAME,X) \
const Packet8i p8i_##NAME = pset1<Packet8i>(X)