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

Description:
    The _m_punpckldq function performs an interleaved unpack of the
    low-order data elements of m1 and m2.  It ignores the high-order
    double-words.  When unpacking from a memory operand, 32 bits are
    accessed and all are utilized by the instruction.


                     m2                         m1
         -------------------------  -------------------------
         |     d1    |     d0    |  |     d1    |     d0    |
         -------------------------  -------------------------
                           |                          |
                           V                          V
                           d1                         d0

                       -------------------------
                       |     d1    |     d0    |
                       -------------------------
                             result


Returns:
    The result of the interleaved unpacking of the low-order double-words of
    two multimedia values is returned.

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

    #define AS_DWORDS "%8.8lx %8.8lx"

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

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

    produces the following:

    m2=ff7fff80 0080007f m1=00040003 00020001
    mm=0080007f 00020001

Classification:
    Intel

Systems:
    MACRO

See Also:
    _m_empty, _m_punpckhbw, _m_punpckhdq, _m_punpckhwd, _m_punpcklbw,
    _m_punpcklwd

See Also: _m_empty _m_punpckhbw

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