fix batch on neon

This commit is contained in:
marauder2k7 2026-03-05 20:04:33 +00:00
parent add7f2a5d7
commit c09d5a4579
4 changed files with 21 additions and 21 deletions

View file

@ -392,9 +392,9 @@ namespace math_backend::mat44
// MATRIX BATCH FUNCTIONS
//--------------------------------------------------
inline void mat44_batch_mul_pos3(const float* m, const float* points, size_t count, float* result)
inline void mat44_batch_mul_pos3(const float* m, const float* points, int count, float* result)
{
size_t i = 0;
int i = 0;
f32x4x4 ma = m_load(m);
// AVX has 8 lanes to play with

View file

@ -488,11 +488,11 @@ namespace math_backend::mat44::dispatch
};
gMat44.batch_mul_pos3 = [](const float* m, const float* pts, size_t count, float* result_ptrs) {
size_t i = 0;
gMat44.batch_mul_pos3 = [](const float* m, const float* pts, int count, float* result_ptrs) {
int i = 0;
for (; i < count; i++)
{
size_t idx = i * 3;
int idx = i * 3;
gMat44.mul_pos3(m, &pts[idx], &result_ptrs[idx]);
}
};