Freigeben über


Miscellaneous Operations (Integer SSE2 Intrinsics)

Microsoft Specific

The intrinsics listed in the following table are followed by their descriptions.

SSE2 intrinsics use the __m128, __m128i, and __m128d data types, which are not supported on Itanium Processor Family (IPF) processors. Any SSE2 intrinsics that use the __m64 data type are not supported on x64 processors.

The emmintrin.h header file contains the declarations for the SSE2 instructions intrinsics.

Comparison Intrinsics

Intrinsic

Corresponding instruction

Operation

_mm_packs_epi16

PACKSSWB

Packed saturation

_mm_packs_epi32

PACKSSDW

Packed saturation

_mm_packus_epi16

PACKUSWB

Packed saturation

_mm_extract_epi16

PEXTRW

Extraction

_mm_insert_epi16

PINSRW

Insertion

_mm_movemask_epi8

PMOVMSKB

Mask creation

_mm_shuffle_epi32

PSHUFD

Shuffle

_mm_shufflehi_epi16

PSHUFHW

Shuffle

_mm_shufflelo_epi16

PSHUFLW

Shuffle

_mm_unpackhi_epi8

PUNPCKHBW

Interleave

_mm_unpackhi_epi16

PUNPCKHWD

Interleave

_mm_unpackhi_epi32

PUNPCKHDQ

Interleave

_mm_unpackhi_epi64

PUNPCKHQDQ

Interleave

_mm_unpacklo_epi8

PUNPCKLBW

Interleave

_mm_unpacklo_epi16

PUNPCKLWD

Interleave

_mm_unpacklo_epi32

PUNPCKLDQ

Interleave

_mm_unpacklo_epi64

PUNPCKLQDQ

Interleave

_mm_movepi64_pi64

MOVDQ2Q

Move

_mm_movpi64_epi64

MOVQ2DQ

Move

_mm_move_epi64

MOVQ

Move

For an explanation of the syntax used in code samples in this topic, see Floating-Point Intrinsics Using Streaming SIMD Extensions.

See Also

Reference

Integer Intrinsics Using Streaming SIMD Extensions 2