24 lines
619 B
C
24 lines
619 B
C
#include <stdio.h>
|
|
#include <mmintrin.h>
|
|
|
|
#define AS_BYTES "%2.2x %2.2x %2.2x %2.2x " \
|
|
"%2.2x %2.2x %2.2x %2.2x"
|
|
|
|
__m64 a;
|
|
__m64 b = { 0x0123456789abcdef };
|
|
__m64 c = { 0xfedcba9876543210 };
|
|
|
|
void main()
|
|
{
|
|
a = _m_psubb( b, c );
|
|
printf( "m1="AS_BYTES"\n"
|
|
"m2="AS_BYTES"\n"
|
|
"mm="AS_BYTES"\n",
|
|
b._8[7], b._8[6], b._8[5], b._8[4],
|
|
b._8[3], b._8[2], b._8[1], b._8[0],
|
|
c._8[7], c._8[6], c._8[5], c._8[4],
|
|
c._8[3], c._8[2], c._8[1], c._8[0],
|
|
a._8[7], a._8[6], a._8[5], a._8[4],
|
|
a._8[3], a._8[2], a._8[1], a._8[0] );
|
|
}
|