about summary refs log tree commit diff
path: root/sysdeps/i386/i686/multiarch/Makefile
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-04-14 22:27:59 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-14 22:27:59 -0700
commita11ec63713ea3903c482dc907a108be404191a02 (patch)
treee9a57c38aa620e21ea59e5cb258550e469e4c06a /sysdeps/i386/i686/multiarch/Makefile
parentdf87f54923da6cb94e1a7d65c3f2349c95d49700 (diff)
downloadglibc-a11ec63713ea3903c482dc907a108be404191a02.tar.gz
glibc-a11ec63713ea3903c482dc907a108be404191a02.tar.xz
glibc-a11ec63713ea3903c482dc907a108be404191a02.zip
Add x86-32 FMA support
Diffstat (limited to 'sysdeps/i386/i686/multiarch/Makefile')
-rw-r--r--sysdeps/i386/i686/multiarch/Makefile6
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