fix bug in computation of unrolling limit: div instead of mul

This commit is contained in:
Benoit Jacob 2008-06-16 11:18:59 +00:00
parent c905b31b42
commit 478bfaf228

View File

@ -73,7 +73,7 @@ public:
private:
enum {
UnrollingLimit = EIGEN_UNROLLING_LIMIT / (int(Vectorization) == int(NoVectorization) ? 1 : int(PacketSize)),
UnrollingLimit = EIGEN_UNROLLING_LIMIT * int(PacketSize),
MayUnrollCompletely = int(Derived::SizeAtCompileTime) * int(OtherDerived::CoeffReadCost) <= int(UnrollingLimit),
MayUnrollInner = int(InnerSize * OtherDerived::CoeffReadCost) <= int(UnrollingLimit)
};