Integer Intrinsics Using Streaming SIMD Extensions
Microsoft Specific
The intrinsics listed in the table are followed by a description of each intrinsic with the most recent mnemonic naming convention.
SSE intrinsics use the __m128, __m128i, and __m128d data types, which are not supported on Itanium Processor Family (IPF) processors. Any SSE intrinsics that use the __m64 data type are not supported on x64 processors.
The header file xmmintrin.h contains the declarations for the SSE intrinsics.
Integer Intrinsics
Intrinsic name |
Operation |
Corresponding instruction |
---|---|---|
Extracts one of four words |
PEXTRW |
|
Inserts a word |
PINSRW |
|
Computes the maximum |
PMAXSW |
|
Computes the maximum, unsigned |
PMAXUB |
|
Computes the minimum |
PMINSW |
|
Computes the minimum, unsigned |
PMINUB |
|
Creates an 8-bit mask |
PMOVMSKB |
|
Multiplies, returning high bits |
PMULHUW |
|
Returns a combination of four words |
PSHUFW |
|
Computes conditional store |
MASKMOVQ |
|
Computes rounded average |
PAVGB |
|
Computes rounded average |
PAVGW |
|
Computes sum of absolute differences |
PSADBW |
For this section you need to empty the multimedia state for the MMX register. See the Understanding the EMMS Instruction section.
For an explanation of the syntax used in code samples in this topic, see Floating-Point Intrinsics Using Streaming SIMD Extensions.