c++ - Array of sse type: Segmentation Fault -
today tried initialize array of sse type __m128d. unfortunately didn't work - why? impossible create arrays of sse types (since register types?). following code segfaults @ assignment in loop.
__m128d* _buffers = new __m128d[32]; for(int i=0;i<32;i++) _buffers[i] = _mm_setzero_pd();
regards + boom
you must use _mm_malloc() or _aligned_malloc(), depending on what's preferred function name on compiler. __m128[di] in combination new bad mojo.
Comments
Post a Comment