2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +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

@@ -45,9 +45,10 @@ public:
CVectorFixed8_8(s16 xi, s16 yi, s16 zi) { x = xi; y = yi; z = zi; }
CVectorFixed8_8(const zeus::CVector3f& vec)
{
x = s16(vec.x * 256.f);
y = s16(vec.y * 256.f);
z = s16(vec.z * 256.f);
zeus::simd_floats f(vec.mSimd);
x = s16(f[0] * 256.f);
y = s16(f[1] * 256.f);
z = s16(f[2] * 256.f);
}
CVectorFixed8_8 operator+(const CVectorFixed8_8& other) const
{