MMX Technology Shift Intrinsics
The document is archived and information here might be outdated

MMX Technology Shift Intrinsics

Microsoft Specific

The intrinsics listed in the following table are followed by a description of each intrinsic.

MMX intrinsics use the __m64 data type, which is not supported on x64 processors.

The header file mmintrin.h contains the declarations for the MMX intrinsics.

Shift Intrinsics

Intrinsic name

Shift direction

Shift type

Corresponding instruction

_mm_sll_pi16

Left

Logical

PSLLW

_mm_slli_pi16

Left

Logical

PSLLWI

_mm_sll_pi32

Left

Logical

PSLLD

_mm_slli_pi32

Left

Logical

PSLLDI

_mm_sll_si64

Left

Logical

PSLLQ

_mm_slli_si64

Left

Logical

PSLLQI

_mm_sra_pi16

Right

Arithmetic

PSRAW

_mm_srai_pi16

Right

Arithmetic

PSRAWI

_mm_sra_pi32

Right

Arithmetic

PSRAD

_mm_srai_pi32

Right

Arithmetic

PSRADI

_mm_srl_pi16

Right

Logical

PSRLW

_mm_srli_pi16

Right

Logical

PSRLWI

_mm_srl_pi32

Right

Logical

PSRLD

_mm_srli_pi32

Right

Logical

PSRLDI

_mm_srl_si64

Right

Logical

PSRLQ

_mm_srli_si64

Right

Logical

PSRLQI

Show:
© 2016 Microsoft