Bugfix regarding alignent in Assign.h (updated map unit test to detect this bug)

Anyway: LinearVectorization+CompleteUnrolling actually uses the InnerVectorization
unrollers, so these two cases could be merged to a single one...
This commit is contained in:
Gael Guennebaud
2008-09-03 14:42:36 +00:00
parent 75649551c2
commit 3bbd1b3114
2 changed files with 11 additions and 2 deletions

View File

@@ -157,12 +157,13 @@ struct ei_assign_innervec_CompleteUnrolling
: Index % Derived1::RowsAtCompileTime,
col = int(Derived1::Flags)&RowMajorBit
? Index % int(Derived1::ColsAtCompileTime)
: Index / Derived1::RowsAtCompileTime
: Index / Derived1::RowsAtCompileTime,
SrcAlignment = ei_assign_traits<Derived1,Derived2>::SrcAlignment
};
inline static void run(Derived1 &dst, const Derived2 &src)
{
dst.template copyPacket<Derived2, Aligned, Aligned>(row, col, src);
dst.template copyPacket<Derived2, Aligned, SrcAlignment>(row, col, src);
ei_assign_innervec_CompleteUnrolling<Derived1, Derived2,
Index+ei_packet_traits<typename Derived1::Scalar>::size, Stop>::run(dst, src);
}