* fix compilation of mixed scalar product

* optimize mixed scalar products
This commit is contained in:
Gael Guennebaud
2010-07-19 16:49:09 +02:00
parent 6e157dd7c6
commit c2ee454df4
5 changed files with 22 additions and 20 deletions

View File

@@ -45,8 +45,6 @@ template<> struct ei_is_arithmetic<__m128d> { enum { ret = true }; };
#define ei_vec2d_swizzle1(v,p,q) \
(_mm_castsi128_pd(_mm_shuffle_epi32( _mm_castpd_si128(v), ((q*2+1)<<6|(q*2)<<4|(p*2+1)<<2|(p*2)))))
// #define ei_vec2d_swizzle1(v,p,q) \
(_mm_shuffle_pd(v,v, (q)<<1|(p) ))
#define ei_vec4f_swizzle2(a,b,p,q,r,s) \
(_mm_shuffle_ps( (a), (b), ((s)<<6|(r)<<4|(q)<<2|(p))))