2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

SIMD refactor

This commit is contained in:
Jack Andersen
2018-12-07 15:49:15 -10:00
parent e1fa938127
commit 7c7da6671a
201 changed files with 2475 additions and 1906 deletions

View File

@@ -30,18 +30,18 @@ void RotationAndOffsetStorage::CopyRotationsAndOffsets(const std::vector<zeus::C
for (u32 j=0 ; j<rotsPerFrame ; ++j)
{
const zeus::CQuaternion& rot = *rit++;
arrOut[0] = rot.w;
arrOut[1] = rot.x;
arrOut[2] = rot.y;
arrOut[3] = rot.z;
arrOut[0] = rot.w();
arrOut[1] = rot.x();
arrOut[2] = rot.y();
arrOut[3] = rot.z();
arrOut += 4;
}
for (u32 j=0 ; j<offsPerFrame ; ++j)
{
const zeus::CVector3f& off = *oit++;
arrOut[0] = off.x;
arrOut[1] = off.y;
arrOut[2] = off.z;
arrOut[0] = off.x();
arrOut[1] = off.y();
arrOut[2] = off.z();
arrOut += 3;
}
}