- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you try
register short int * tij = tsh + i*5 -j;
asm( "paddw (%0), %xmm0"::"r"(tij))
register short int * tij = tsh + i*5 -j;
asm( "paddw (%0), %xmm0"::"r"(tij))
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page