Developer Guide and Reference

Contents

Shift Intrinsics

Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for integer shift operations are listed in this topic. The prototypes for Intel® SSE2 intrinsics are in the
emmintrin.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.
The
count
argument is one shift count that applies to all elements of the operand being shifted. It is not a vector shift count that shifts each element by a different amount.
Intrinsic
Operation
Shift Type
Corresponding
Intel® SSE2 Instruction
_mm_slli_si128
Shift left
Logical
PSLLDQ
_mm_slli_epi16
Shift left
Logical
PSLLW
_mm_sll_epi16
Shift left
Logical
PSLLW