<<<    Index    >>>
3-491
INSTRUCTION SET REFERENCE
PAVGB/PAVGW—Packed Average (Continued)
WHILE (I < 4)
TEMP[I] = ZERO_EXT(X[I], 16) + ZERO_EXT{Y[I], 16);
RES[I] = (TEMP[I] + 1) >> 1;
ENDWHILE
DEST[15-0] = RES[0];
DEST[31-16] = RES[1];
DEST[47-32] = RES[2];
DEST[63-48] = RES[3];
FI;
Intel C/C++ Compiler Intrinsic Equivalent
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64_mm_pavgb(__m64 a, __m64 b)
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64_mm_avg_pu8(__m64 a, __m64 b)
Performs the packed average on the eight 8-bit values of the two operands.
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64_mm_pavgw(__m64 a, __m64 b)
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64_mm_avg_pu16(__m64 a, __m64 b)
Performs the packed average on the four 16-bit values of the two operands.
Numeric Exceptions
None.
<<<    Index    >>>