24 lines
622 B
C
24 lines
622 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 = { 0x0004000300020001 };
|
|
__m64 c = { 0xff7fff800080007f };
|
|
|
|
void main()
|
|
{
|
|
a = _m_punpckhbw( b, c );
|
|
printf( "m2="AS_BYTES" "
|
|
"m1="AS_BYTES"\n"
|
|
"mm="AS_BYTES"\n",
|
|
c._8[7], c._8[6], c._8[5], c._8[4],
|
|
c._8[3], c._8[2], c._8[1], c._8[0],
|
|
b._8[7], b._8[6], b._8[5], b._8[4],
|
|
b._8[3], b._8[2], b._8[1], b._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] );
|
|
}
|