_mm_avg_pu16

Microsoft Specific

Computes the (rounded) averages of the unsigned words in a and b.

__m64 _mm_avg_pu16(__m64 a, __m64 b);

Return Value

t = (unsigned int)a0 + (unsigned int)b0
r0 = (t >> 1) | (t & 0x01)
...
t = (unsigned word)a7 + (unsigned word)b7
r7 = (unsigned short)((t >> 1) | (t & 0x01))

Requirements

Header: mmintrin.h

END Microsoft Specific

See Also

Reference

Integer Intrinsics Using Streaming SIMD Extensions