Hello together,
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
{
public:
vec4(void)
{
// as an example ...
reg = _mm_setzero_ps();
}
union
{
struct
{
float w,z,y,x;
};
__m128 reg;
float coord[4];
};
}
Now i have another class - let's say the classic foo, containing some of these vec4
class Foo{
vec4 mPosition;
vec4 mOrientation;
vec4 mColor;
}
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?



