aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2011-02-12 21:29:16 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2011-02-12 21:29:16 +0100
commit1a6597b8e44e2f828e6da017d1aef1e1be3d5f81 (patch)
tree6cda25ca61da9a71255f0b7d3062bee2c7db14e5 /Eigen
parent509ca635435fe4a8e1ddfc02318e55c0bbec5b1d (diff)
MSVC does not like using uninitialized SSE variables, so we have to pass all zeros.
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/arch/SSE/PacketMath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/SSE/PacketMath.h b/Eigen/src/Core/arch/SSE/PacketMath.h
index 0872a04f4..bbe784523 100644
--- a/Eigen/src/Core/arch/SSE/PacketMath.h
+++ b/Eigen/src/Core/arch/SSE/PacketMath.h
@@ -229,7 +229,7 @@ template<> EIGEN_STRONG_INLINE Packet4i pload<Packet4i>(const int* from) { E
// (i.e., it does not generate an unaligned load!!
// TODO On most architectures this version should also be faster than a single _mm_loadu_ps
// so we could also enable it for MSVC08 but first we have to make this later does not generate crap when doing so...
- __m128 res = _mm_loadl_pi(res, (const __m64*)(from));
+ __m128 res = _mm_loadl_pi(_mm_set1_ps(0.0f), (const __m64*)(from));
res = _mm_loadh_pi(res, (const __m64*)(from+2));
return res;
#else