Developer Guide and Reference

Contents

Arithmetic Intrinsics

Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for integer arithmetic 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
, ...,
R15
represent the registers in which results are placed.
Intrinsic Name
Operation
Corresponding
Intel® SSE2 Instruction
_mm_add_epi8
Addition
PADDB
_mm_add_epi16
Addition
PADDW
_mm_add_epi32
Addition
PADDD
_mm_add_si64
Addition
PADDQ
_mm_add_epi64
Addition