fix glmm_fmsub() on arm-neon: https://github.com/recp/cglm/pull/364 thanks to @gottfriedleibniz

This commit is contained in:
Recep Aslantas
2023-12-12 11:24:25 +03:00
parent bc2a918ad0
commit 97575bdcd6

View File

@@ -174,7 +174,7 @@ glmm_fnmadd(float32x4_t a, float32x4_t b, float32x4_t c) {
static inline
float32x4_t
glmm_fmsub(float32x4_t a, float32x4_t b, float32x4_t c) {
return glmm_fmadd(vnegq_f32(c), a, b);
return glmm_fmadd(a, b, vnegq_f32(c));
}
static inline