daily update on 20230830

This commit is contained in:
Nitload
2023-08-30 22:49:11 +08:00
parent 1fcbfb972b
commit c6f4b3dd53
55 changed files with 648 additions and 1198 deletions
+10 -1
View File
@@ -36,7 +36,7 @@ SSGC_API __inline void _cdecl transpose3to4(matrix3map* source, matrix4map* targ
target->colum[3] = _mm_shuffle_ps(t1, t3, _MM_SHUFFLE(3, 1, 3, 1));
}
float det_mat3_internal(__m128 const c0, __m128 const c1, __m128 const c2)
SSGC_API _inline float _cdecl det_mat3_internal(__m128 const c0, __m128 const c1, __m128 const c2)
{
//let adding row aligned
@@ -64,3 +64,12 @@ float det_mat3_internal(__m128 const c0, __m128 const c1, __m128 const c2)
return ret.m128_f32[2];
}
SSGC_API _inline float _cdecl det_mat3(matrix3map* mat)
{
return det_mat3_internal(
mat->colum[0],
mat->colum[1],
mat->colum[2]
);
}