Developer Guide and Reference

Contents

Register Insertion/Extraction Intrinsics

These Intel® Streaming SIMD Extensions (Intel® SSE4) intrinsics enable data insertion and extraction between general purpose registers and
XMM
registers. The prototypes for these intrinsics are in the
smmintrin.h
file.
To use these intrinsics, include the
immintrin.h
file as follows:
#include <immintrin.h>
Intrinsics marked with * are implemented only on Intel® 64 architectures. The rest of the intrinsics are implemented on both IA-32 and Intel® 64 architectures.
Intrinsic Syntax
Operation
Corresponding
Intel® SSE4 Instruction
__m128 _mm_insert_ps(__m128 dst, __m128 src, const int ndx)
Insert single precision float into packed single precision array element selected by index.
INSERTPS
int _mm_extract_ps(__m128 src, const int ndx)
Extract single precision float from packed single precision array element selected by index.
EXTRACTPS