Disable the use of MMX instructions on x86_64 since too many compilers only support them in 32bit mode

This commit is contained in:
Benoit Steiner 2016-05-25 08:27:26 -07:00
parent bcfff64f9e
commit ed783872ab
2 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,6 @@ template<> struct packet_traits<Eigen::half> : default_packet_traits
};
};
template<> struct unpacket_traits<half2> { typedef Eigen::half type; enum {size=2, alignment=Aligned16}; typedef half2 half; };
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE half2 pset1<half2>(const Eigen::half& from) {
@ -530,7 +529,7 @@ ptranspose(PacketBlock<Packet8h,4>& kernel) {
}
#elif defined EIGEN_VECTORIZE_SSE && !EIGEN_COMP_MSVC
#elif defined(EIGEN_VECTORIZE_SSE) && !EIGEN_ARCH_x86_64
typedef struct {
__m64 x;

View File

@ -128,7 +128,7 @@ template<> EIGEN_STRONG_INLINE Packet8h pcast<Packet8f, Packet8h>(const Packet8f
return float2half(a);
}
#elif defined EIGEN_VECTORIZE_SSE && !EIGEN_COMP_MSVC
#elif defined(EIGEN_VECTORIZE_SSE) && !EIGEN_ARCH_x86_64
template <>
struct type_casting_traits<Eigen::half, float> {