Define pcast<> for SSE types even when AVX is enabled. (otherwise float are silently reinterpreted as int instead of being converted)

(grafted from 647b724a36
)
This commit is contained in:
Gael Guennebaud
2018-05-29 20:46:46 +02:00
parent bb87f618bf
commit 971b32440c
2 changed files with 15 additions and 14 deletions

View File

@@ -384,6 +384,7 @@ using std::ptrdiff_t;
#include "src/Core/arch/AVX/MathFunctions.h"
#include "src/Core/arch/AVX/Complex.h"
#include "src/Core/arch/AVX/TypeCasting.h"
#include "src/Core/arch/SSE/TypeCasting.h"
#elif defined EIGEN_VECTORIZE_SSE
#include "src/Core/arch/SSE/PacketMath.h"
#include "src/Core/arch/SSE/MathFunctions.h"