From 20cac72b8228de6c129caa983b25facddad0e009 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 17 Feb 2015 22:58:32 +0100 Subject: [PATCH] Packet must be passed by const reference and not by value to avoid alignment issue. --- Eigen/src/Core/util/BlasUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/BlasUtil.h b/Eigen/src/Core/util/BlasUtil.h index 3ec55fad2..9bfa45106 100644 --- a/Eigen/src/Core/util/BlasUtil.h +++ b/Eigen/src/Core/util/BlasUtil.h @@ -166,7 +166,7 @@ class BlasLinearMapper { return ploadt(m_data + i); } - EIGEN_ALWAYS_INLINE void storePacket(Index i, Packet p) const { + EIGEN_ALWAYS_INLINE void storePacket(Index i, const Packet &p) const { pstoret(m_data + i, p); }