Author: Gerd Isenberg
Date: 05:38:53 10/02/03
Go up one level in this thread
oups, some printf format %08x instead of %04x of course:
#include <stdio.h>
#include <emmintrin.h>
__m128i source =
{
'\000', '\001', '\002', '\003',
'\004', '\005', '\006', '\007',
'\010', '\011', '\012', '\013',
'\014', '\015', '\016', '\017'
};
__m128i target;
void sse2test()
{
__m128i reg1 = _mm_load_si128 (&source);
reg1 = _mm_slli_si128 (reg1, 1);
_mm_store_si128 (&target, reg1);
}
int main(int argc, char* argv[])
{
sse2test();
printf("source = 0x%08x%08x%08x%08x\n",
source.m128i_u32[3],
source.m128i_u32[2],
source.m128i_u32[1],
source.m128i_u32[0] );
printf("target = 0x%08x%08x%08x%08x\n",
target.m128i_u32[3],
target.m128i_u32[2],
target.m128i_u32[1],
target.m128i_u32[0] );
getchar();
return 0;
}
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.