mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Disable the use of MMX instructions on x86_64 since too many compilers only support them in 32bit mode
This commit is contained in:
parent
bcfff64f9e
commit
ed783872ab
@ -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;
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user