Developer Guide and Reference

Contents

Compare Intrinsics

Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for integer comparison 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_cmpeq_epi8
Equality
PCMPEQB
_mm_cmpeq_epi16
Equality
PCMPEQW
_mm_cmpeq_epi32
Equality
PCMPEQD
_mm_cmpgt_epi8
Greater Than
PCMPGTB
_mm_cmpgt_e