redesign matrix design

This commit is contained in:
Youmu Liu
2025-12-18 18:04:55 +08:00
parent 688a420574
commit b32c1cb4eb
9 changed files with 256 additions and 542 deletions
+1 -16
View File
@@ -2,7 +2,7 @@
// Hybrid implementation: SIMD for Abs, Scalar for Max
// Assumes Column-Major layout for both MAT_KERNEL content and Kernel sequence
static void povit_float_simd_abs(MAT_KERNEL(float) const *source, size_t col_begin,
static void povit_float(MAT_KERNEL(float) const *source, size_t col_begin,
size_t col_length, size_t *restrict ans)
{
float max_v[4] = { -1.0f, -1.0f, -1.0f, -1.0f };
@@ -62,18 +62,3 @@ static void povit_float_simd_abs(MAT_KERNEL(float) const *source, size_t col_beg
}
}
}
DECLARE_MAT_POVIT_PROC(float, sse)
{
povit_float_simd_abs(source, col_begin, col_length, ans);
}
DECLARE_MAT_POVIT_PROC(float, avx)
{
povit_float_simd_abs(source, col_begin, col_length, ans);
}
DECLARE_MAT_POVIT_PROC(float, 512)
{
povit_float_simd_abs(source, col_begin, col_length, ans);
}