From 810bc731420e2eb7a376a428508809f6375b02ce Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Fri, 7 Nov 2008 05:15:05 +0000 Subject: [PATCH] don't align IBM Cell SDK version (USE_LIBSPE2) --- src/LinearMath/btQuadWord.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/LinearMath/btQuadWord.h b/src/LinearMath/btQuadWord.h index ad8a0a708..293990492 100644 --- a/src/LinearMath/btQuadWord.h +++ b/src/LinearMath/btQuadWord.h @@ -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