From 7b0eee497e1124205a67b70b007e23f24b592f6a Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Mon, 19 Apr 2021 00:28:07 +0300 Subject: [PATCH] arm: fix fmadd parameter order --- include/cglm/simd/arm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cglm/simd/arm.h b/include/cglm/simd/arm.h index 405b9d5..2c2b845 100644 --- a/include/cglm/simd/arm.h +++ b/include/cglm/simd/arm.h @@ -83,9 +83,9 @@ static inline float32x4_t glmm_fmadd(float32x4_t a, float32x4_t b, float32x4_t c) { #if defined(__aarch64__) - return vfmaq_f32(a, b, c); + return vfmaq_f32(c, a, b); #else - return vmlaq_f32(a, b, c); + return vmlaq_f32(c, a, b); #endif } @@ -93,9 +93,9 @@ static inline float32x4_t glmm_fnmadd(float32x4_t a, float32x4_t b, float32x4_t c) { #if defined(__aarch64__) - return vfmsq_f32(a, b, c); + return vfmsq_f32(c, a, b); #else - return vmlsq_f32(a, b, c); + return vmlsq_f32(c, a, b); #endif }