mat kernel turns to be generic

This commit is contained in:
Youmu Liu
2025-09-19 20:38:44 +08:00
parent 8007eee846
commit 62cf2430f4
9 changed files with 111 additions and 178 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#include "StgSharpNative.h"
#include "sn_internal.h"
SN_API void SN_DECL normalize(__m128 *source, __m128 *target)
SN_API void SN_DECL normalize(__m128 *restrict source, __m128 *restrict target)
{
__m128 a_length_sq = _mm_mul_ps(*source, *source);
a_length_sq = _mm_add_ps(a_length_sq,