From 673263265ba9bbdd4e210489ce08b35b05bdc7c6 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sun, 10 Dec 2023 20:28:39 +0300 Subject: [PATCH] fix glmm_fmsub() on arm-neon --- include/cglm/simd/arm.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/cglm/simd/arm.h b/include/cglm/simd/arm.h index 0cfa63f..1adc735 100644 --- a/include/cglm/simd/arm.h +++ b/include/cglm/simd/arm.h @@ -174,11 +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) { -#if CGLM_ARM64 - return vfmsq_f32(c, vnegq_f32(a), b); -#else - return vmlsq_f32(c, vnegq_f32(a), b); -#endif + return glmm_fmadd(vnegq_f32(c), a, b); } static inline