Developer Guide and Reference

Contents

Conversion Intrinsics

The prototypes for Intel® Streaming SIMD Extensions (Intel® SSE) intrinsics for conversion operations are in the
xmmintrin.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 a register. This register is illustrated for each intrinsic with R or R0-R3. R0, R1, R2, and R3 each represent one of the four 32-bit pieces of the result register.
Intrinsics marked with * are available only on Intel® 64 architecture. The rest of the intrinsics can be implemented on both IA-32 and Intel® 64 architectures.
Intrinsic Name
Operation
Corresponding
Intel® SSE Instruction
_mm_cvtss_si32
Convert to 32-bit integer
CVTSS2SI
_mm_cvtss_si64*
Convert to 64-bit integer
CVTSS2SI
_mm_cvtps_pi32
Convert to two 32-bit integers
CVTPS2PI
_mm_cvttss_si32
Convert to 32-bit integer
CVTTSS2SI
_mm_cvttss_si64*
Convert to 64-bit integer