mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
fix glmm_fmsub() on arm-neon
This commit is contained in:
@@ -174,11 +174,7 @@ glmm_fnmadd(float32x4_t a, float32x4_t b, float32x4_t c) {
|
|||||||
static inline
|
static inline
|
||||||
float32x4_t
|
float32x4_t
|
||||||
glmm_fmsub(float32x4_t a, float32x4_t b, float32x4_t c) {
|
glmm_fmsub(float32x4_t a, float32x4_t b, float32x4_t c) {
|
||||||
#if CGLM_ARM64
|
return glmm_fmadd(vnegq_f32(c), a, b);
|
||||||
return vfmsq_f32(c, vnegq_f32(a), b);
|
|
||||||
#else
|
|
||||||
return vmlsq_f32(c, vnegq_f32(a), b);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
|
|||||||
Reference in New Issue
Block a user