mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-03 18:50:39 +08:00
s/__SSE3__/EIGEN_VECTORIZE_SSE3
(transplanted from f0a1652113667d12eaf80310c244d92a144c0bcb )
This commit is contained in:
parent
c31b70fcfd
commit
10295de37b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user