Include SSE packetmath when AVX is enabled, and enable AVX's sine function only in fast-math mode (as SSE)

This commit is contained in:
Gael Guennebaud 2015-08-07 17:40:39 +02:00
parent 65bfa5fce7
commit e68c7b8368
2 changed files with 2 additions and 1 deletions

View File

@ -306,6 +306,7 @@ using std::ptrdiff_t;
// Use AVX for floats and doubles, SSE for integers
#include "src/Core/arch/SSE/PacketMath.h"
#include "src/Core/arch/SSE/Complex.h"
#include "src/Core/arch/SSE/MathFunctions.h"
#include "src/Core/arch/AVX/PacketMath.h"
#include "src/Core/arch/AVX/MathFunctions.h"
#include "src/Core/arch/AVX/Complex.h"

View File

@ -60,7 +60,7 @@ template<> struct packet_traits<float> : default_packet_traits
HasHalfPacket = 1,
HasDiv = 1,
HasSin = 1,
HasSin = EIGEN_FAST_MATH,
HasCos = 0,
HasLog = 1,
HasExp = 1,