i have a problem with SSE2 instructions. I am developing with MS VS2005 Express and I've done the following Project settings:
C/C++ > Code Generation:
Enable enhanced construction set: Streaming SIMD Extensions (/arch:SSE)
Struct Member Alignment : 16 Bytes (/Zp16)
C/C++ > Optimization:
Enable intrinsic functions: yes (/Oi)
I reduce the code examples to a minimum.
I have a class vec4 with the following member
// as an example ...
reg = _mm_setzero_ps();
Now i have another class - let's say the classic foo, containing some of these vec4class Foo
In my Application there is something like Foo * foo = new Foo(); where the instance is created,
but the application crashed because of an memory expection. I am quite confused, because i thought there can not be a problem if i've enabled the 16Bit allignment.
Has somebody an idea what habbend here?