Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <mmintrin.h>
    __m64 _m_pcmpeqd(__m64 *m1, __m64 *m2);

Description:
    If the respective double-words of m1 are equal to the respective
    double-words of m2, the respective double-words of the result are set to
    all ones, otherwise they are set to all zeros.

Returns:
    The result of comparing the 32-bit packed double-words of two 64-bit
    multimedia values is returned as a sequence of double-words (0xffffffff
    for equal, 0x00000000 for not equal).

Example:
    #include <stdio.h>
    #include <mmintrin.h>

    #define AS_DWORDS "%8.8lx %8.8lx"

    __m64   a;
    __m64   b = { 0x0004000300020001 };
    __m64   c = { 0x000400030002007f };

    void main()
      {
        a = _m_pcmpeqd( b, c );
        printf( "m1="AS_DWORDS"\n"
                "m2="AS_DWORDS"\n"
                "mm="AS_DWORDS"\n",
            b._32[1], b._32[0],
            c._32[1], c._32[0],
            a._32[1], a._32[0] );
      }

    produces the following:

    m1=00040003 00020001
    m2=00040003 0002007f
    mm=ffffffff 00000000

Classification:
    Intel

Systems:
    MACRO

See Also:
    _m_empty, _m_pcmpeqb, _m_pcmpeqw, _m_pcmpgtb, _m_pcmpgtd, _m_pcmpgtw

See Also: _m_empty _m_pcmpeqb

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson