Silenced "unused variable" warnings when compiling with FMA.

This commit is contained in:
Benoit Steiner 2014-03-27 11:00:47 -07:00
parent 3e1fe8e416
commit 1697d7a179

View File

@ -215,6 +215,7 @@ public:
// (in the case where there is no FMA) gcc fails to figure out how to avoid
// spilling register.
#ifdef EIGEN_VECTORIZE_FMA
EIGEN_UNUSED_VARIABLE(tmp);
c = pmadd(a,b,c);
#else
tmp = b; tmp = pmul(a,tmp); c = padd(c,tmp);
@ -299,6 +300,7 @@ public:
EIGEN_STRONG_INLINE void madd_impl(const LhsPacket& a, const RhsPacket& b, AccPacket& c, RhsPacket& tmp, const true_type&) const
{
#ifdef EIGEN_VECTORIZE_FMA
EIGEN_UNUSED_VARIABLE(tmp);
c.v = pmadd(a.v,b,c.v);
#else
tmp = b; tmp = pmul(a.v,tmp); c.v = padd(c.v,tmp);
@ -520,6 +522,7 @@ public:
EIGEN_STRONG_INLINE void madd_impl(const LhsPacket& a, const RhsPacket& b, AccPacket& c, RhsPacket& tmp, const true_type&) const
{
#ifdef EIGEN_VECTORIZE_FMA
EIGEN_UNUSED_VARIABLE(tmp);
c = pmadd(a,b,c);
#else
tmp = b; tmp.v = pmul(a,tmp.v); c = padd(c,tmp);