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_psubd(__m64 *m1, __m64 *m2);

Description:
    The signed or unsigned 32-bit double-words of m2 are subtracted from the
    respective signed or unsigned 32-bit double-words of m1 and the result
    is stored in memory.  If any result element does not fit into 32 bits
    (underflow or overflow), the lower 32-bits of the result elements are
    stored (i.e., truncation takes place).

Returns:
    The result of subtracting one set of packed double-words from a second
    set of packed double-words is returned.

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

    #define AS_DWORDS "%8.8lx %8.8lx"

    __m64   a;
    __m64   b = { 0x0123456789abcdef };
    __m64   c = { 0xfedcba9876543210 };

    void main()
      {
        a = _m_psubd( 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=01234567 89abcdef
    m2=fedcba98 76543210
    mm=02468acf 13579bdf

Classification:
    Intel

Systems:
    MACRO

See Also:
    _m_empty, _m_psubb, _m_psubsb, _m_psubsw, _m_psubusb, _m_psubusw,
    _m_psubw

See Also: _m_empty _m_psubb

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