Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

Store Intrinsics

Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for integer store 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 detailed description of each intrinsic contains a table detailing the returns. In these tables, p is an access to the result.

Intrinsic Name

Operation

Corresponding
Intel® SSE2 Instruction

_mm_stream_si128

Store

MOVNTDQ

_mm_stream_si32

Store

MOVNTI

_mm_store_si128

Store

MOVDQA

_mm_storeu_si128

Store

MOVDQU

_mm_maskmoveu_si128

Conditional store

MASKMOVDQU

_mm_storel_epi64

Store lowest

MOVQ

_mm_stream_si128

void _mm_stream_si128(__m128i *p, __m128i a);

Stores the data in a to the address p without polluting the caches. If the cache line containing address p is already in the cache, the cache will be updated. Address p must be 16 byte aligned.

*p

a

_mm_stream_si32

void _mm_stream_si32(int *p, int a);

Stores the data in a to the address p without polluting the caches. If the cache line containing address p is already in the cache, the cache will be updated.

*p

a

_mm_store_si128

void _mm_store_si128(__m128i *p, __m128i b);

Stores 128-bit value. Address p must be 16 byte aligned.

*p

a

_mm_storeu_si128

void _mm_storeu_si128(__m128i *p, __m128i b);

Stores 128-bit value. Address p need not be 16-byte aligned.

*p

a

_mm_maskmoveu_si128

void _mm_maskmoveu_si128(__m128i d, __m128i n, char *p);

Conditionally store byte elements of d to address p. The high bit of each byte in the selector n determines whether the corresponding byte in d will be stored. Address p need not be 16-byte aligned.

if (n0[7])

if (n1[7]

...

if (n15[7])

p[0] := d0

p[1] := d1

...

p[15] := d15

_mm_storel_epi64

void _mm_storel_epi64(__m128i *p, __m128i a);

Stores the lower 64 bits of the value pointed to by p.

*p[63:0]

a0