search for: _mm_sad_pu8

Displaying 1 result from an estimated 1 matches for "_mm_sad_pu8".

Did you mean: _mm_sad_epu8
2009 Oct 13
3
Proposal for replacing asm code with intrinsics
...ier to maintain. For example: _mm_sad_epu8(__m128, __m128) will be compiled in PSADBW instruction with compiler-allocated registers. And code like: psadbw mm4,mm5 paddw mm0,mm4 Can be re-written into _m64 mm0, mm4, mm5, mm6, mm7; //of course using meaningful names mm0= _mm_add_epi16(mm0, _mm_sad_pu8(mm4, mm5)); Compiler will replace variables with actual registers, ensuring better allocation and scheduling of them. So, benefits are: 1) Easier to read & understand code which can use same variable names as generic version in C 2) Single source code for gcc & msvc & intel compiler (a...