search for: _mm_sad_epu8

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

2009 Oct 13
3
Proposal for replacing asm code with intrinsics
...: 1) Need to sync gcc & msvc versions 2) Only 32bit environment is supported 3) No support for newer than MMX instruction sets My proposal is to replace all functions in assembly with compiler intrinsic which compiles into 1-2 assembly instructions and are much easier 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 rep...