[vsipl++] [patch] Minor CFAR changes

Mark Mitchell mark at codesourcery.com
Fri Jun 9 17:02:07 UTC 2006


Jules Bergmann wrote:

> Question on SIMD:  For the C+SIMD version, I used the intrinsics from
> xmmintrin.h (__m128, _mm_add_ps(), etc).  This works with both 3.4 and
> 4.1.  For the VSIPL++ SIMD version, I used the GCC vector extensions
> (typedef float v4sf __attribute++ ((vector_size(16))), '+' operator).
> The typedefs work with 3.4 and 4.1, but the operators (+, *, etc) only
> work with 4.1.  Is there any difference in code generated from these two
> approaches? 

I would not think so.  However, if there *is* a difference, I would
expect the xmmintrin.h to be better; that's mapping directly to the
underlying instructions, with no compiler cleverness.

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the vsipl++ mailing list