mirror of
https://github.com/recp/cglm.git
synced 2026-11-20 02:33:10 -06:00
fix glmm_fmsub() on arm-neon
This commit is contained in:
1 parent
8a1d1cf35d
commit
dd9235dfee
1 file changed
+2
-2
@@ -175,9 +175,9 @@ 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
|
#if CGLM_ARM64
|
||||||
return vfmsq_f32(c, a, b);
|
return vfmsq_f32(c, vnegq_f32(a), b);
|
||||||
#else
|
#else
|
||||||
return vmlsq_f32(vnegq_f32(c), a, b);
|
return vmlsq_f32(c, vnegq_f32(a), b);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user