win, msvc: enable FMA macro for MSVC

This commit is contained in:
Recep Aslantas
2021-04-19 04:14:14 +03:00
parent aa2fa89e6c
commit ebba4eea8e

View File

@@ -197,6 +197,11 @@ glmm_store3(float v[3], __m128 vx) {
_mm_store_ss(&v[2], glmm_shuff1(vx, 2, 2, 2, 2));
}
/* enable FMA macro for MSVC? */
#if !defined(__FMA__) && defined(__AVX2__)
# define __FMA__ 1
#endif
static inline
__m128
glmm_fmadd(__m128 a, __m128 b, __m128 c) {