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

Description:
    The signed or unsigned 16-bit words of m1 are multiplied with the
    respective signed or unsigned 16-bit words of m2.  The low-order 16-bits
    of each result are placed in the respective elements of the result.

Returns:
    The packed 16-bit words in m1 are multiplied with the packed 16-bit
    words in m2 and the low-order 16-bits of the results are returned.

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

    #define AS_WORDS "%4.4x %4.4x %4.4x %4.4x"

    __m64   a;
    __m64   b = { 0x4000006000123456 };
    __m64   c = { 0x0008000210000020 };

    void main()
      {
        a = _m_pmullw( b, c );
        printf( "m1="AS_WORDS"\n"
                "m2="AS_WORDS"\n"
                "mm="AS_WORDS"\n",
            b._16[3], b._16[2], b._16[1], b._16[0],
            c._16[3], c._16[2], c._16[1], c._16[0],
            a._16[3], a._16[2], a._16[1], a._16[0] );
      }

    produces the following:

    m1=4000 0060 0012 3456
    m2=0008 0002 1000 0020
    mm=0000 00c0 2000 8ac0

Classification:
    Intel

Systems:
    MACRO

See Also:
    _m_empty, _m_pmaddwd, _m_pmulhw

See Also: _m_empty _m_pmaddwd

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