don't align IBM Cell SDK version (USE_LIBSPE2)

This commit is contained in:
erwin.coumans
2008-11-07 05:15:05 +00:00
parent e36b06f585
commit 810bc73142

View File

@@ -27,9 +27,13 @@ subject to the following restrictions:
/**@brief The btQuadWordStorage class is base class for btVector3 and btQuaternion.
* Some issues under PS3 Linux with IBM 2.1 SDK, gcc compiler prevent from using aligned quadword.
*/
#if defined (__SPU__)
#if defined (USE_LIBSPE2)
class btQuadWordStorage
#else
ATTRIBUTE_ALIGNED16(class) btQuadWordStorage
#endif
{
#if defined (__SPU__) && defined (__CELLOS_LV2__)
protected:
union {
vec_float4 mVec128;
@@ -41,13 +45,11 @@ public:
return mVec128;
}
};
#else
class btQuadWordStorage
{
#else //__CELLOS_LV2__ __SPU__
protected:
btScalar m_floats[4];
};
#endif
#endif //__CELLOS_LV2__ __SPU__
/** @brief The btQuadWord is base-class for vectors, points */
class btQuadWord : public btQuadWordStorage