fix glmm_fmsub() on arm-neon

This commit is contained in:
Recep Aslantas
2023-12-10 10:06:36 +03:00
parent 7ccf199066
commit 8a1d1cf35d

View File

@@ -177,7 +177,7 @@ glmm_fmsub(float32x4_t a, float32x4_t b, float32x4_t c) {
#if CGLM_ARM64
return vfmsq_f32(c, a, b);
#else
return vmlsq_f32(c, a, b);
return vmlsq_f32(vnegq_f32(c), a, b);
#endif
}