Developer Guide and Reference

Contents

Set Intrinsics

Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for floating-point set 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 load and set operations are similar in that both initialize
__m128d
data. However, the set operations take a double argument and are intended for initialization with constants, while the load operations take a double pointer argument and are intended to mimic the instructions for loading data from memory.
Some of the these intrinsics are composite intrinsics because they require more than one instruction to implement them.
The results of each intrinsic operation are placed in a register. The information about what is placed in each register appears in the tables below, in the detailed explanation for each intrinsic. For each intrinsic, the resulting register is represented by
R0
and
R1
, where
R0
and
R1
each represent one piece of the result register.
Intrinsic Name
Operation
Corresponding
Intel® SSE2 Instruction
_mm_set_sd
Sets lower DP FP value to
w
and upper to zero
Composite
_mm_set1_pd
Sets two DP FP values to
w
Composite
_mm_set_pd
Sets lower DP FP to
x
and upper to
w
Composite