s/__SSE3__/EIGEN_VECTORIZE_SSE3

(transplanted from f0a1652113667d12eaf80310c244d92a144c0bcb
)
This commit is contained in:
Gael Guennebaud 2012-03-21 23:50:43 +01:00
parent c31b70fcfd
commit 10295de37b

View File

@ -96,7 +96,7 @@ struct quat_product<Architecture::SSE, Derived, OtherDerived, double, Aligned>
*/ */
t1 = padd(pmul(a_ww, b_xy), pmul(a_yy, b_zw)); t1 = padd(pmul(a_ww, b_xy), pmul(a_yy, b_zw));
t2 = psub(pmul(a_zz, b_xy), pmul(a_xx, b_zw)); t2 = psub(pmul(a_zz, b_xy), pmul(a_xx, b_zw));
#ifdef __SSE3__ #ifdef EIGEN_VECTORIZE_SSE3
EIGEN_UNUSED_VARIABLE(mask) EIGEN_UNUSED_VARIABLE(mask)
pstore(&res.x(), _mm_addsub_pd(t1, preverse(t2))); pstore(&res.x(), _mm_addsub_pd(t1, preverse(t2)));
#else #else
@ -110,7 +110,7 @@ struct quat_product<Architecture::SSE, Derived, OtherDerived, double, Aligned>
*/ */
t1 = psub(pmul(a_ww, b_zw), pmul(a_yy, b_xy)); t1 = psub(pmul(a_ww, b_zw), pmul(a_yy, b_xy));
t2 = padd(pmul(a_zz, b_zw), pmul(a_xx, b_xy)); t2 = padd(pmul(a_zz, b_zw), pmul(a_xx, b_xy));
#ifdef __SSE3__ #ifdef EIGEN_VECTORIZE_SSE3
EIGEN_UNUSED_VARIABLE(mask) EIGEN_UNUSED_VARIABLE(mask)
pstore(&res.z(), preverse(_mm_addsub_pd(preverse(t1), t2))); pstore(&res.z(), preverse(_mm_addsub_pd(preverse(t1), t2)));
#else #else