From 97575bdcd608086160d7fc28aacdd6651b783868 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Tue, 12 Dec 2023 11:24:25 +0300 Subject: [PATCH] fix glmm_fmsub() on arm-neon: https://github.com/recp/cglm/pull/364 thanks to @gottfriedleibniz --- include/cglm/simd/arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cglm/simd/arm.h b/include/cglm/simd/arm.h index 1adc735..e8507d7 100644 --- a/include/cglm/simd/arm.h +++ b/include/cglm/simd/arm.h @@ -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