Use full packet size for Dynamic-sized objects (otherwise, the unalignedcount unit test fails with AVX enabled)

This commit is contained in:
Christoph Hertzberg
2015-09-02 22:51:43 +02:00
parent aa768add0b
commit 5ad7981f73
2 changed files with 3 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ template<typename T> struct unpacket_traits
};
template<int Size, typename PacketType,
bool Stop = (Size%unpacket_traits<PacketType>::size)==0 || is_same<PacketType,typename unpacket_traits<PacketType>::half>::value>
bool Stop = Size==Dynamic || (Size%unpacket_traits<PacketType>::size)==0 || is_same<PacketType,typename unpacket_traits<PacketType>::half>::value>
struct find_best_packet_helper;
template< int Size, typename PacketType>