i am a beginer of the parallel studio......something wrongs in my program.....
#include
class __declspec(dllexport) Vector4SSE
{
public:
union{
__m128 m_Vec;
struct
{
float x,y,z,w;
};
float m_elem[4];
};
public:
inline Vector4SSE(void)
{
// do nothing
}
inline Vector4SSE(float x, float y, float z, float w = 1.0f)
{
m_Vec = _mm_set_ps(w,z,y,x);
}
inline Vector4SSE(float value)
{
Set(value);
}
inline Vector4SSE(unsigned int x, unsigned int y, unsigned int z, unsigned int w)
{
m_Vec.m128_u32[0] = x; //they all passed in vc9.0,but if i used Intel C++ Compiler 11.1.061 [IA-32],they all have
// aerror: expression must have class type or class "__m128" has no member "m128_u32"
//we can find "__m128" details in xmmintrin.h, it has been define and it has member
// "m128_u32",why ????? it is a bug????? or something wrongs in my config????
m_Vec.m128_u32[1] = y;
m_Vec.m128_u32[2] = z;
m_Vec.m128_u32[3] = w;
}
..........................and so on //
};


