Developer Guide and Reference

Contents

Conversion Intrinsics

Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for integer conversion 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.
Intrinsics marked with * are implemented only on Intel® 64 architecture. The rest of the intrinsics are implemented on both IA-32 and Intel® 64 architectures.
Intrinsic Name
Operation
Corresponding Intel® SSE2 Instruction
_mm_cvtsi64_sd*
Convert and pass through
CVTSI2SD
_mm_cvtsd_si64*
Convert according to rounding
CVTSD2SI
_mm_cvttsd_si64*
Convert using truncation
CVTTSD2SI
_mm_cvtepi32_ps
Convert to SP FP
None
_mm_cvtps_epi32
<