about summary refs log tree commit diff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-02 22:39:19 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-02 22:39:19 +0000
commitdfb87dc8128c1e960b61df984412a5b33943b2ce (patch)
tree527f8bdb16b78bc6a93e7dc3b122bc860f4be304 /sysdeps/i386
parent0f501b7f2a40ffaabb89dc35724aad11db2846c9 (diff)
downloadglibc-dfb87dc8128c1e960b61df984412a5b33943b2ce.tar.gz
glibc-dfb87dc8128c1e960b61df984412a5b33943b2ce.tar.xz
glibc-dfb87dc8128c1e960b61df984412a5b33943b2ce.zip
(sqrt, __sqrtl, ldexp, ldexpf, ldexpl): Only define if __FAST_MATH__.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index e8091df684..6274824063 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -1,5 +1,5 @@
 /* Inline math functions for i387.
-   Copyright (C) 1995,96,97,98,99,2000,2001 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,97,98,99,2000,2001,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by John C. Bowman <bowman@math.ualberta.ca>, 1995.
 
@@ -437,8 +437,10 @@ __inline_mathcodeNP2 (fmod, __x, __y, \
   return __value)
 
 
+#ifdef __FAST_MATH__
 __inline_mathopNP (sqrt, "fsqrt")
 __inline_mathopNP_ (long double, __sqrtl, "fsqrt")
+#endif
 
 #if __GNUC_PREREQ (2, 8)
 __inline_mathcodeNP_ (double, fabs, __x, return __builtin_fabs (__x))
@@ -511,7 +513,8 @@ __inline_mathcodeNP (ceil, __x, \
   __asm __volatile ("fldcw %0" : : "m" (__cw));				      \
   return __value)
 
-#define __ldexp_code \
+#ifdef __FAST_MATH__
+# define __ldexp_code \
   register long double __value;						      \
   __asm __volatile__							      \
     ("fscale"								      \
@@ -523,6 +526,7 @@ ldexp (double __x, int __y) __THROW
 {
   __ldexp_code;
 }
+#endif
 
 
 /* Optimized versions for some non-standardized functions.  */