Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

How to do this in intel compiler???

jmsecilla
Beginner
340 Views
Hi,
I have the following array:
tsh=(short int *)_mm_malloc(w*h*sizeof(short int), 16);

I want to do this in intel compiler:
asm(
"paddw (%0), %xmm0"
:
:"r"(tsh+i*5-j))

The problem is the array when I want to set the address to take 128 bits of tsh.

How can I to write "tsh+i*5-j" in intel compiler?

Thanks.
0 Kudos
1 Reply
colin
Beginner
340 Views
Could you try

register short int * tij = tsh + i*5 -j;
asm( "paddw (%0), %xmm0"::"r"(tij))
0 Kudos
Reply