C++ 使用SSE-C+的内存溢出+;

C++ 使用SSE-C+的内存溢出+;,c++,sse,C++,Sse,我有一个设想 int N3 =7000 temp =(int*)malloc(sizeof(int )*N3); for(unsigned int i=0;i<N3;i++) { temp[i]=i; } temp = temp +10; __m128i* array= reinterpret_cast<__m128i*>(temp); int length = N3/4;

我有一个设想

     int N3 =7000
    temp =(int*)malloc(sizeof(int )*N3);

    for(unsigned int i=0;i<N3;i++)
    {
              temp[i]=i;
    }



    temp = temp +10;
    __m128i* array= reinterpret_cast<__m128i*>(temp);
   int length = N3/4;

   for(unsigned int i=0;i<length;i++)
   {
      __m128i answer= _mm_loadu_si128(&array[i]);
   }
int N3=7000
温度=(int*)malloc(sizeof(int)*N3);

对于(无符号整数i=0;i执行块时:

temp = temp +10;
__m128i* sse_array = reinterpret_cast<__m128i*>(temp);
int length = N3/4;

for(unsigned int i=0;i<length;i++)
{
   __m128i result = _mm_loadu_si128(&sse_array[i]);
}
int length = N3*sizeof(int)/size(__m128i);