how can i resolve this error?
error C2676: binary '[' : '__m128i' does not define this operator or a conversion to a type acceptable to the predefined operator
.h file
class bigyy
{
public:
bigyy();
.
.
.
protected:
__declspec(align(16))static const int pink[5][2];
__declspec(align(16))static const int orange[12];
protected:
__declspec(align(16))int _x;
__declspec(align(16))int _y;
};
.cpp file
#include <emmintrin.h>
const int bigyy::pink[5][2] =
{
{1,2},
{3,4},
{5,6 },
{ 7,8},
{ 9,10 }
};
const int bigyy::orange[12] =
{
0, 2, 2 ,
2, 1, 1 ,
0, 2, 2 ,
2, 1, 1
};
bigyy::bigyy()
{
_x = 1;
_y = _x % 6;
}
__m128i xo,temp;
.
.int p=orange[j]
.
.__m128i pink =_mm_cvtsi32_si128(pink[_y][p]);
.temp = _mm_mulhi_epi16(x0,pink[_y][p])//error C2676: binary '[' : '__m128i' does not define this operator or a conversion to a type acceptable to the predefined operator