Share via


_mm_avg_pu8

Microsoft Specific

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

__m64 _mm_avg_pu8(__m64 a, __m64 b);
PAVGB

Return Value

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

Requirements

Header: mmintrin.h

END Microsoft Specific

See Also

Reference

Integer Intrinsics Using Streaming SIMD Extensions