mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-24 23:33:13 +08:00
MSVC does not like using uninitialized SSE variables, so we have to pass all zeros.
This commit is contained in:
parent
509ca63543
commit
1a6597b8e4
@ -229,7 +229,7 @@ template<> EIGEN_STRONG_INLINE Packet4i pload<Packet4i>(const int* from) { E
|
|||||||
// (i.e., it does not generate an unaligned load!!
|
// (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
|
// 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...
|
// 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));
|
res = _mm_loadh_pi(res, (const __m64*)(from+2));
|
||||||
return res;
|
return res;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user