mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Silenced "unused variable" warnings when compiling with FMA.
This commit is contained in:
@@ -215,6 +215,7 @@ public:
|
|||||||
// (in the case where there is no FMA) gcc fails to figure out how to avoid
|
// (in the case where there is no FMA) gcc fails to figure out how to avoid
|
||||||
// spilling register.
|
// spilling register.
|
||||||
#ifdef EIGEN_VECTORIZE_FMA
|
#ifdef EIGEN_VECTORIZE_FMA
|
||||||
|
EIGEN_UNUSED_VARIABLE(tmp);
|
||||||
c = pmadd(a,b,c);
|
c = pmadd(a,b,c);
|
||||||
#else
|
#else
|
||||||
tmp = b; tmp = pmul(a,tmp); c = padd(c,tmp);
|
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
|
EIGEN_STRONG_INLINE void madd_impl(const LhsPacket& a, const RhsPacket& b, AccPacket& c, RhsPacket& tmp, const true_type&) const
|
||||||
{
|
{
|
||||||
#ifdef EIGEN_VECTORIZE_FMA
|
#ifdef EIGEN_VECTORIZE_FMA
|
||||||
|
EIGEN_UNUSED_VARIABLE(tmp);
|
||||||
c.v = pmadd(a.v,b,c.v);
|
c.v = pmadd(a.v,b,c.v);
|
||||||
#else
|
#else
|
||||||
tmp = b; tmp = pmul(a.v,tmp); c.v = padd(c.v,tmp);
|
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
|
EIGEN_STRONG_INLINE void madd_impl(const LhsPacket& a, const RhsPacket& b, AccPacket& c, RhsPacket& tmp, const true_type&) const
|
||||||
{
|
{
|
||||||
#ifdef EIGEN_VECTORIZE_FMA
|
#ifdef EIGEN_VECTORIZE_FMA
|
||||||
|
EIGEN_UNUSED_VARIABLE(tmp);
|
||||||
c = pmadd(a,b,c);
|
c = pmadd(a,b,c);
|
||||||
#else
|
#else
|
||||||
tmp = b; tmp.v = pmul(a,tmp.v); c = padd(c,tmp);
|
tmp = b; tmp.v = pmul(a,tmp.v); c = padd(c,tmp);
|
||||||
|
|||||||
Reference in New Issue
Block a user