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

@@ -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,