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 |
---|---|---|---|---|
PCMPEQB |
Equality |
16 |
8 |
|
PCMPEQW |
Equality |
8 |
16 |
|
PCMPEQD |
Equality |
4 |
32 |
|
PCMPGTB |
Greater than |
16 |
8 |
|
PCMPGTW |
Greater than |
8 |
16 |
|
PCMPGTD |
Greater than |
4 |
32 |
|
PCMPGTBr |
Less than |
16 |
8 |
|
PCMPGTWr |
Less than |
8 |
16 |
|
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.