Developer Guide and Reference

Contents

Set Intrinsics

Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for integer set operations are listed in this topic. These intrinsics are composite intrinsics because they require more than one instruction to implement them. 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
...
R15
represent the registers in which results are placed.
Intrinsic Name
Operation
Corresponding
Intel® SSE2 Instruction
_mm_set_epi64
Set two integer values
Composite
_mm_set_epi64x
Set two integer values
Composite
_mm_set_epi32
Set four integer values
Composite
_mm_set_epi16
Set eight integer values
Composite
_mm_set_epi8
Set sixteen integer values
Composite
_mm_set1_epi64
Set two integer values
Composite
_mm_set1_epi64x
Set two integer values
Composite
_mm_set1_epi32
Set four integer values
Composite
_mm_set1_epi16
Set eight integer values
Composite
_mm_set1_epi8
Set sixteen integer values
Composite
_mm_setr_epi64
Set two integer values in reverse order
Composite
_mm_setr_epi32
Set four integer values in reverse order
Composite
_mm_setr_epi16
Set eight integer values in reverse order
Composite
_mm_setr_epi8
Set sixteen integer values in reverse order
Composite
_mm_setzero_si128
Set to zero
Composite

_mm_set_epi64

__m128i _mm_set_epi64(__m64 q1, __m64 q0);
Sets the two 64-bit integer values.
R0
R1
q0
q1

_mm_set_epi64x

__m128i _mm_set_epi64x(__int64 b, __int64 a);
Sets the two 64-bit integer values.
R0
R1
a
b

_mm_set_epi32

__m128i _mm_set_epi32(int i3, int i2, int i1, int i0);
Sets the four signed 32-bit integer values.
R0
R1
R2
R3
i0
i1
i2
i3

_mm_set_epi16

__m128i _mm_set_epi16(short w7, short w6, short w5, short w4, short w3, short w2, short w1, short w0);
Sets the eight signed 16-bit integer values.