Visible to Intel only — GUID: GUID-CA07DE5F-9DD1-4435-B0D3-8D6B15277666
Visible to Intel only — GUID: GUID-CA07DE5F-9DD1-4435-B0D3-8D6B15277666
Move Intrinsics
The Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for integer move 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, R2 and R3 represent the registers in which results are placed.
Intrinsic Name |
Operation |
Corresponding Intel® SSE2 Instruction |
---|---|---|
_mm_cvtsi32_si128 |
Move and zero |
MOVD |
_mm_cvtsi64_si128 |
Move and zero |
MOVQ |
_mm_cvtsi128_si32 |
Move lowest 32 bits |
MOVD |
_mm_cvtsi128_si64 |
Move lowest 64 bits |
MOVQ |
_mm_cvtsi32_si128
__m128i _mm_cvtsi32_si128(int a);
Moves 32-bit integer a to the least significant 32 bits of an __m128i object. Zeroes the upper 96 bits of the __m128i object.
R0 |
R1 |
R2 |
R3 |
---|---|---|---|
a |
0x0 |
0x0 |
0x0 |
_mm_cvtsi64_si128
__m128i _mm_cvtsi64_si128(__int64 a);
Moves 64-bit integer a to the lower 64 bits of an __m128i object, zeroing the upper bits.
R0 |
R1 |
---|---|
a |
0x0 |
_mm_cvtsi128_si32
int _mm_cvtsi128_si32(__m128i a);
Moves the least significant 32 bits of a to a 32-bit integer.
R |
---|
a0 |
_mm_cvtsi128_si64
__int64 _mm_cvtsi128_si64(__m128i a);
Moves the lower 64 bits of a to a 64-bit integer.
R |
---|
a0 |