Here's code which works normally:
char a[100];
for (int i = 0; i < 100; i++)
a[i] = 0;
__m128i x = _mm_load_si128((__m128i *) a);
But if I dynamically allocate memory, VS 2013 will interrupt:
char *a = new char[100];
for (int i = 0; i < 100; i++)
a[i] = 0;
__m128i x = _mm_load_si128((__m128i *) a);
How can I use both dynamic memory and aligned load instruction?