added sample task, for multi threading tests

added union vec_float4 m_Vec128; for btVector3 for SPU and PPU.
This commit is contained in:
erwin.coumans
2008-06-03 21:24:34 +00:00
parent 8028fa4999
commit 5e3777ddd2
6 changed files with 174 additions and 15 deletions

View File

@@ -47,7 +47,14 @@ public:
SIMD_FORCE_INLINE btVector3& operator+=(const btVector3& v)
{
#ifdef __PPU__
m_Vec128 = vec_add( m_Vec128, v.get128() );
#elif defined __SPU__
m_Vec128 = spu_add( m_Vec128, v.get128() );
#else
m_x += v.x(); m_y += v.y(); m_z += v.z();
#endif
return *this;
}