diff options
Diffstat (limited to 'sysdeps/i386/i686/multiarch/Makefile')
-rw-r--r-- | sysdeps/i386/i686/multiarch/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/multiarch/Makefile b/sysdeps/i386/i686/multiarch/Makefile index e8847d6fc4..124595068d 100644 --- a/sysdeps/i386/i686/multiarch/Makefile +++ b/sysdeps/i386/i686/multiarch/Makefile @@ -19,3 +19,9 @@ CFLAGS-strstr.c += -msse4 CFLAGS-strcasestr.c += -msse4 endif endif + +ifeq (mathyes,$(subdir)$(config-cflags-avx)) +libm-sysdep_routines += s_fma-fma s_fmaf-fma +CFLAGS-s_fma-fma.c += -mavx -mfpmath=sse +CFLAGS-s_fmaf-fma.c += -mavx -mfpmath=sse +endif |