about summary refs log tree commit diff
path: root/sysdeps/x86/fpu/bits/mathinline.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-01-29 07:51:41 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-01-29 11:19:05 -0800
commit409e00bd69b8d8dd74d7327085351d26769ea6fc (patch)
tree6b7decb7a12716086c2ad613cba1b7901e91d528 /sysdeps/x86/fpu/bits/mathinline.h
parent86e60666b66627d2eb788e970a59e5a470cd484c (diff)
downloadglibc-409e00bd69b8d8dd74d7327085351d26769ea6fc.tar.gz
glibc-409e00bd69b8d8dd74d7327085351d26769ea6fc.tar.xz
glibc-409e00bd69b8d8dd74d7327085351d26769ea6fc.zip
Disable x87 inline functions for SSE2 math
When i386 and x86-64 mathinline.h was merged into a single mathinline.h,
"gcc -m32" enables x87 inline functions on x86-64 even when -mfpmath=sse
and SSE2 is enabled.  It is a regression on x86-64.  We should check
__SSE2_MATH__ instead of __x86_64__ when disabling x87 inline functions.
Diffstat (limited to 'sysdeps/x86/fpu/bits/mathinline.h')
-rw-r--r--sysdeps/x86/fpu/bits/mathinline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86/fpu/bits/mathinline.h b/sysdeps/x86/fpu/bits/mathinline.h
index acc82ca275..b4b28f30f1 100644
--- a/sysdeps/x86/fpu/bits/mathinline.h
+++ b/sysdeps/x86/fpu/bits/mathinline.h
@@ -384,7 +384,7 @@ __END_NAMESPACE_C99
 # endif
 #endif
 
-#ifndef __x86_64__
+#ifndef __SSE2_MATH__
 # if ((!defined __NO_MATH_INLINES || defined __LIBC_INTERNAL_MATH_INLINES) \
      && defined __OPTIMIZE__)
 
@@ -970,4 +970,4 @@ __inline_mathcode2 (__ieee754_atan2, __y, __x,
 		    return __value;)
 # endif
 
-#endif /* !__x86_64__ */
+#endif /* !__SSE2_MATH__ */