21 lines
444 B
C
21 lines
444 B
C
|
#include <stdio.h>
|
||
|
#include <mmintrin.h>
|
||
|
|
||
|
#define AS_WORDS "%4.4x %4.4x %4.4x %4.4x"
|
||
|
#define AS_QWORD "%16.16Lx"
|
||
|
|
||
|
__m64 a;
|
||
|
__m64 b = { 0x3f04800300040001 };
|
||
|
__m64 c = { 0x0000000000000002 };
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
a = _m_psraw( b, c );
|
||
|
printf( "m1="AS_WORDS"\n"
|
||
|
"m2="AS_QWORD"\n"
|
||
|
"mm="AS_WORDS"\n",
|
||
|
b._16[3], b._16[2], b._16[1], b._16[0],
|
||
|
c,
|
||
|
a._16[3], a._16[2], a._16[1], a._16[0] );
|
||
|
}
|