MMX(TM) Technology Compare Intrinsics

Intrinsic Name Comparison Number of Elements Element Bit Size Corresponding Instruction

_mm_cmpeq_pi8

Equal

8

8

PCMPEQB

_mm_cmpeq_pi16

Equal

4

16

PCMPEQW

_mm_cmpeq_pi32

Equal

2

32

PCMPEQD

_mm_cmpgt_pi8

Greater Than

8

8

PCMPGTB

_mm_cmpgt_pi16

Greater Than

4

16

PCMPGTW

_mm_cmpgt_pi32

Greater Than

2

32

PCMPGTD

 

__m64 _mm_cmpeq_pi8 (__m64 m1, __m64 m2)

If the respective 8-bit values in m1 are equal to the respective 8-bit values in m2 set the respective 8-bit resulting values to all ones, otherwise set them to all zeros.

 

__m64 _mm_cmpeq_pi16 (__m64 m1, __m64 m2)

If the respective 16-bit values in m1 are equal to the respective 16-bit values in m2 set the respective 16-bit resulting values to all ones, otherwise set them to all zeros.

 

__m64 _mm_cmpeq_pi32 (__m64 m1, __m64 m2)

If the respective 32-bit values in m1 are equal to the respective 32-bit values in m2 set the respective 32-bit resulting values to all ones, otherwise set them to all zeros.

 

__m64 _mm_cmpgt_pi8 (__m64 m1, __m64 m2)

If the respective 8-bit values in m1 are greater than the respective 8-bit values in m2 set the respective 8-bit resulting values to all ones, otherwise set them to all zeros.

 

__m64 _mm_cmpgt_pi16 (__m64 m1, __m64 m2)

If the respective 16-bit values in m1 are greater than the respective 16-bit values in m2 set the respective 16-bit resulting values to all ones, otherwise set them to all zeros.

 

__m64 _mm_cmpgt_pi32 (__m64 m1, __m64 m2)

If the respective 32-bit values in m1 are greater than the respective 32-bit values in m2 set the respective 32-bit resulting values to all ones, otherwise set them all to zeros.