Hi all.
I have a question.
I try to use '_mm_extract_epi8' function, which has 'const int ndx' parameter.
int _mm_extract_epi8(
__m128i a,
const int ndx
);
If I want to use as below, what should I do?
__m128i my128i;
for (int i=0; i<16; i++)
{
_mm_extract_epi8(my128i, i); }
What I have tried:
I modified code as below, but it doesn't work.
for (int i=0; i<15; i++)
{
const int idx=i;
_mm_extract_epi8(my128i, idx); }
-------------------------------------
Error message : error C2057: expected constant expression.
So, I copy and paste the function.
_mm_extract_epi8(my128i, 0);
_mm_extract_epi8(my128i, 1);
_mm_extract_epi8(my128i, 2);
...
_mm_extract_epi8(my128i, 15);