daily update on 20231104 by nitload youmu

This commit is contained in:
Nitload
2023-11-04 07:28:34 +08:00
parent 588a61d514
commit 9933ced8f4
368 changed files with 171636 additions and 109434 deletions
+6 -6
View File
@@ -1,11 +1,11 @@
#include "StgSharpGraphic.h"
#include "StgSharpC.h"
#include <stdio.h>
#include <pmmintrin.h>
SSGC_API __inline void __cdecl transpose4to2(matrix4map* source, matrix4map* target)
SSCAPI __inline void __cdecl transpose4to2(matrix4map* source, matrix4map* target)
{
__m128 t0 = _mm_shuffle_ps(ALIGN(source->colum[0]), ALIGN(source->colum[1]), _MM_SHUFFLE(1, 0, 1, 0));
__m128 t2 = _mm_shuffle_ps(ALIGN(source->colum[2]), ALIGN(source->colum[3]), _MM_SHUFFLE(1, 0, 1, 0));
@@ -14,7 +14,7 @@ SSGC_API __inline void __cdecl transpose4to2(matrix4map* source, matrix4map* tar
target->colum[1] = _mm_shuffle_ps(t0, t2, _MM_SHUFFLE(3, 1, 3, 1));
}
SSGC_API __inline void __cdecl transpose4to4(matrix4map* source, matrix4map* target)
SSCAPI __inline void __cdecl transpose4to4(matrix4map* source, matrix4map* target)
{
__m128 t0 = _mm_shuffle_ps(ALIGN(source->colum[0]), ALIGN(source->colum[1]), _MM_SHUFFLE(1, 0, 1, 0));
__m128 t1 = _mm_shuffle_ps(ALIGN(source->colum[0]), ALIGN(source->colum[1]), _MM_SHUFFLE(3, 2, 3, 2));
@@ -28,7 +28,7 @@ SSGC_API __inline void __cdecl transpose4to4(matrix4map* source, matrix4map* tar
}
SSGC_API __inline void __cdecl transpose4to3(matrix4map* source, matrix3map* target)
SSCAPI __inline void __cdecl transpose4to3(matrix4map* source, matrix3map* target)
{
__m128 t0 = _mm_shuffle_ps(ALIGN(source->colum[0]), ALIGN(source->colum[1]), _MM_SHUFFLE(1, 0, 1, 0));
__m128 t1 = _mm_shuffle_ps(ALIGN(source->colum[0]), ALIGN(source->colum[1]), _MM_SHUFFLE(3, 2, 3, 2));
@@ -43,7 +43,7 @@ SSGC_API __inline void __cdecl transpose4to3(matrix4map* source, matrix3map* tar
SSGC_API __inline float __cdecl det_mat4(matrix4map* matPtr, matrix4map* transpose)
SSCAPI __inline float __cdecl det_mat4(matrix4map* matPtr, matrix4map* transpose)
{
__m128 mc0 = ALIGN(matPtr->colum[0]);
__m128 mc1 = ALIGN(matPtr->colum[1]);
@@ -63,7 +63,7 @@ SSGC_API __inline float __cdecl det_mat4(matrix4map* matPtr, matrix4map* transpo
}
SSGC_API __inline void __cdecl deinit_mat4(matrix4map* matPtr)
SSCAPI __inline void __cdecl deinit_mat4(matrix4map* matPtr)
{
_aligned_free(matPtr);
}