Shift Operations

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.

Shift Operation Intrinsics

Intrinsic shift

Direction shift

Type

Corresponding instruction

_mm_slli_si128

Left

Logical

PSLLDQ

_mm_slli_epi16

Left

Logical

PSLLW

_mm_sll_epi16

Left

Logical

PSLLW

_mm_slli_epi32

Left

Logical

PSLLD

_mm_sll_epi32

Left

Logical

PSLLD

_mm_slli_epi64

Left

Logical

PSLLQ

_mm_sll_epi64

Left

Logical

PSLLQ

_mm_srai_epi16

Right

Arithmetic

PSRAW

_mm_sra_epi16

Right

Arithmetic

PSRAW

_mm_srai_epi32

Right

Arithmetic

PSRAD

_mm_sra_epi32

Right

Arithmetic

PSRAD

_mm_srli_si128

Right

Logical

PSRLDQ

_mm_srli_epi16

Right

Logical

PSRLW

_mm_srl_epi16

Right

Logical

PSRLW

_mm_srli_epi32

Right

Logical

PSRLD

_mm_srl_epi32

Right

Logical

PSRLD

_mm_srli_epi64

Right

Logical

PSRLQ

_mm_srl_epi64

Right

Logical

PSRLQ

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