diff options
author | 2008-07-21 12:40:56 +0000 | |
---|---|---|
committer | 2008-07-21 12:40:56 +0000 | |
commit | 516db2c3b97345553c3489681fba67f52a8eda6b (patch) | |
tree | 20594204246869186b207db64862ccbfd5eeac43 /Eigen/src/Core/arch/SSE/PacketMath.h | |
parent | c10f069b6b9f0dd4bb313341d1969bd7e1cf9338 (diff) |
Fix compilation issues with icc and g++ < 4.1. Those include:
- conflicts with operator * overloads
- discard the use of ei_pdiv for interger
(g++ handles operators on __m128* types, this is why it worked)
- weird behavior of icc in fixed size Block() constructor complaining
the initializer of m_blockRows and m_blockCols were missing while
we are in fixed size (maybe this hide deeper problem since this is a
recent one, but icc gives only little feedback)
Diffstat (limited to 'Eigen/src/Core/arch/SSE/PacketMath.h')
-rw-r--r-- | Eigen/src/Core/arch/SSE/PacketMath.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/SSE/PacketMath.h b/Eigen/src/Core/arch/SSE/PacketMath.h index 114ed49e2..148835732 100644 --- a/Eigen/src/Core/arch/SSE/PacketMath.h +++ b/Eigen/src/Core/arch/SSE/PacketMath.h @@ -61,6 +61,8 @@ template<> inline __m128i ei_pmul(const __m128i& a, const __m128i& b) template<> inline __m128 ei_pdiv(const __m128& a, const __m128& b) { return _mm_div_ps(a,b); } template<> inline __m128d ei_pdiv(const __m128d& a, const __m128d& b) { return _mm_div_pd(a,b); } +template<> inline __m128i ei_pdiv(const __m128i& a, const __m128i& b) +{ ei_assert(false && "packet integer division are not supported by SSE"); } // for some weird raisons, it has to be overloaded for packet integer template<> inline __m128i ei_pmadd(const __m128i& a, const __m128i& b, const __m128i& c) { return ei_padd(ei_pmul(a,b), c); } |