Add missing inline keywords

This commit is contained in:
Gael Guennebaud 2016-10-25 20:20:09 +02:00
parent 3e194a6a73
commit aad72f3c6d
3 changed files with 6 additions and 5 deletions

View File

@ -559,7 +559,8 @@ pblend(const Selector<unpacket_traits<Packet>::size>& ifPacket, const Packet& th
}
/** \internal \returns \a a with last coefficients replaced by the scalar b */
template<typename Packet> EIGEN_DEVICE_FUNC Packet pinsertlast(const Packet& a, typename unpacket_traits<Packet>::type b)
template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
pinsertlast(const Packet& a, typename unpacket_traits<Packet>::type b)
{
// Default implementation based on pblend.
// It must be specialized for higher performance.

View File

@ -604,12 +604,12 @@ template<> EIGEN_STRONG_INLINE Packet4d pblend(const Selector<4>& ifPacket, cons
return _mm256_blendv_pd(thenPacket, elsePacket, false_mask);
}
template<> EIGEN_DEVICE_FUNC Packet8f pinsertlast(const Packet8f& a, float b)
template<> EIGEN_STRONG_INLINE Packet8f pinsertlast(const Packet8f& a, float b)
{
return _mm256_blend_ps(a,pset1<Packet8f>(b),(1<<7));
}
template<> EIGEN_DEVICE_FUNC Packet4d pinsertlast(const Packet4d& a, double b)
template<> EIGEN_STRONG_INLINE Packet4d pinsertlast(const Packet4d& a, double b)
{
return _mm256_blend_pd(a,pset1<Packet4d>(b),(1<<3));
}

View File

@ -818,7 +818,7 @@ template<> EIGEN_STRONG_INLINE Packet2d pblend(const Selector<2>& ifPacket, cons
#endif
}
template<> EIGEN_DEVICE_FUNC Packet4f pinsertlast(const Packet4f& a, float b)
template<> EIGEN_STRONG_INLINE Packet4f pinsertlast(const Packet4f& a, float b)
{
#ifdef EIGEN_VECTORIZE_SSE4_1
return _mm_blend_ps(a,pset1<Packet4f>(b),(1<<3));
@ -828,7 +828,7 @@ template<> EIGEN_DEVICE_FUNC Packet4f pinsertlast(const Packet4f& a, float b)
#endif
}
template<> EIGEN_DEVICE_FUNC Packet2d pinsertlast(const Packet2d& a, double b)
template<> EIGEN_STRONG_INLINE Packet2d pinsertlast(const Packet2d& a, double b)
{
#ifdef EIGEN_VECTORIZE_SSE4_1
return _mm_blend_pd(a,pset1<Packet2d>(b),(1<<1));