共用方式為


_mm_sad_pu8 

Microsoft Specific

Computes the sum of the absolute differences of the unsigned bytes in a and b, returning the value in the lower word.

__m64 _mm_sad_pu8(__m64 a, __m64 b);
PSADBW

Return Value

The upper three words are cleared.

r0 = abs(a0-b0) + ... + abs(a7-b7)
r1 = r2 = r3 = 0 

Requirements

Header: mmintrin.h

END Microsoft Specific

See Also

Reference

Integer Intrinsics Using Streaming SIMD Extensions