This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/mpmaddwd.c

21 lines
470 B
C

#include <stdio.h>
#include <mmintrin.h>
#define AS_WORDS "%4.4x %4.4x %4.4x %4.4x"
#define AS_DWORDS "%8.8lx %8.8lx"
__m64 a;
__m64 b = { 0x0000006000123456 };
__m64 c = { 0x0000000200010020 };
void main()
{
a = _m_pmaddwd( b, c );
printf( "m1="AS_WORDS"\n"
"m2="AS_WORDS"\n"
"mm="AS_DWORDS"\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._32[1], a._32[0] );
}