Compartilhar via


Comparison Intrinsics (SSE2)

Microsoft Specific

The intrinsics listed in the following table are followed by their descriptions.

SSE2 intrinsics use the __m128, __m128i, and __m128d data types, which are not supported on Itanium Processor Family (IPF) processors. Any SSE2 intrinsics that use the __m64 data type are not supported on x64 processors.

The emmintrin.h header file contains the declarations for the SSE2 instructions intrinsics.

Comparison Intrinsics

Intrinsic name

Instruction

Comparison

Elements

Size of elements

_mm_cmpeq_epi8

PCMPEQB

Equality

16

8

_mm_cmpeq_epi16

PCMPEQW

Equality

8

16

_mm_cmpeq_epi32

PCMPEQD

Equality

4

32

_mm_cmpgt_epi8

PCMPGTB

Greater than

16

8

_mm_cmpgt_epi16

PCMPGTW

Greater than

8

16

_mm_cmpgt_epi32

PCMPGTD

Greater than

4

32

_mm_cmplt_epi8

PCMPGTBr

Less than

16

8

_mm_cmplt_epi16

PCMPGTWr

Less than

8

16

_mm_cmplt_epi32

PCMPGTDr

Less than

4

32

For an explanation of the syntax used in code samples in this topic, see Floating-Point Intrinsics Using Streaming SIMD Extensions.

See Also

Reference

Integer Intrinsics Using Streaming SIMD Extensions 2