Developer Guide and Reference

Contents

Integer Intrinsics

The prototypes for Intel® Streaming SIMD Extensions (Intel® SSE) intrinsics for integer operations are in the
xmmintrin.h
header file.
To use these intrinsics, include the
immintrin.h
file as follows:
#include <immintrin.h>
The results of each intrinsic operation are placed in registers. The information about what is placed in each register appears in the tables below, in the detailed explanation of each intrinsic. R, R0, R1, ..., R7 represent the registers in which results are placed.
Before using these intrinsics, you must empty the multimedia state for the MMX™ technology register. See The EMMS Instruction: Why You Need It for more details.
Intrinsic Name
Operation
Corresponding
Intel® SSE Instruction
_mm_extract_pi16
Extract one of four words
PEXTRW
_mm_insert_pi16
Insert word
PINSRW
_mm_max_pi16
Compute maximum
PMAXSW
_mm_max_pu8
Compute maximum, unsigned
PMAXUB