Disable Packet2f/2i halfpacket support in NEON.

I believe that it was erroneously turned on, since Packet2f/2i intrinsics are unimplemented,
and code trying to use halfpackets just fails to compile on NEON, as it tries to use the
default implementation of pload/pstore and the types don't match.
This commit is contained in:
Benoit Jacob 2015-02-27 11:35:37 -05:00
parent f5ff4d826f
commit 33669348c4

View File

@ -76,12 +76,12 @@ typedef uint32x4_t Packet4ui;
template<> struct packet_traits<float> : default_packet_traits template<> struct packet_traits<float> : default_packet_traits
{ {
typedef Packet4f type; typedef Packet4f type;
typedef Packet2f half; typedef Packet4f half; // Packet2f intrinsics not implemented yet
enum { enum {
Vectorizable = 1, Vectorizable = 1,
AlignedOnScalar = 1, AlignedOnScalar = 1,
size = 4, size = 4,
HasHalfPacket=1, HasHalfPacket=0, // Packet2f intrinsics not implemented yet
HasDiv = 1, HasDiv = 1,
// FIXME check the Has* // FIXME check the Has*
@ -95,12 +95,12 @@ template<> struct packet_traits<float> : default_packet_traits
template<> struct packet_traits<int> : default_packet_traits template<> struct packet_traits<int> : default_packet_traits
{ {
typedef Packet4i type; typedef Packet4i type;
typedef Packet2i half; typedef Packet4i half; // Packet2i intrinsics not implemented yet
enum { enum {
Vectorizable = 1, Vectorizable = 1,
AlignedOnScalar = 1, AlignedOnScalar = 1,
size=4, size=4,
HasHalfPacket=1 HasHalfPacket=0, // Packet2i intrinsics not implemented yet
// FIXME check the Has* // FIXME check the Has*
}; };
}; };