diff options
author | Andreas Jaeger <aj@suse.de> | 2000-05-06 07:46:06 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-05-06 07:46:06 +0000 |
commit | f9c9dc78c9ffec9dfa4887f68d4011f0265348c6 (patch) | |
tree | 70b81c7a501b3ba4d9d690c855b4bb97e5668e5b /sysdeps/i386/fpu/bits/mathinline.h | |
parent | d02b156906e206f7b5df1acf2ca3c68b96d13052 (diff) | |
download | glibc-f9c9dc78c9ffec9dfa4887f68d4011f0265348c6.tar.gz |
2000-05-06 Andreas Jaeger <aj@suse.de>
* sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
functions unless -ffast-math is given to gcc.
Diffstat (limited to 'sysdeps/i386/fpu/bits/mathinline.h')
-rw-r--r-- | sysdeps/i386/fpu/bits/mathinline.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h index 326c23a0cf..33fd5a9c59 100644 --- a/sysdeps/i386/fpu/bits/mathinline.h +++ b/sysdeps/i386/fpu/bits/mathinline.h @@ -604,7 +604,9 @@ __inline_mathcodeNP(logb, __x, \ #endif #ifdef __USE_ISOC99 +#ifdef __FAST_MATH__ __inline_mathop_declNP (log2, "fld1; fxch; fyl2x", "0" (__x) : "st(1)") +#endif /* __FAST_MATH__ */ __MATH_INLINE float ldexpf (float __x, int __y) @@ -618,9 +620,11 @@ ldexpl (long double __x, int __y) __ldexp_code; } +#ifdef __FAST_MATH__ __inline_mathcodeNP3 (fma, __x, __y, __z, return (__x * __y) + __z) __inline_mathopNP (rint, "frndint") +#endif /* __FAST_MATH__ */ #define __lrint_code \ long int __lrintres; \ @@ -695,7 +699,7 @@ __finite (double __x) } /* Miscellaneous functions */ - +#ifdef __FAST_MATH__ __inline_mathcode (__coshm1, __x, \ register long double __exm1 = __expm1l (__fabsl (__x)); \ return 0.5 * (__exm1 / (__exm1 + 1.0)) * __exm1) @@ -703,6 +707,7 @@ __inline_mathcode (__coshm1, __x, \ __inline_mathcode (__acosh1p, __x, \ return log1pl (__x + __sqrtl (__x) * __sqrtl (__x + 2.0))) +#endif /* __FAST_MATH__ */ #endif /* __USE_MISC */ /* Undefine some of the large macros which are not used anymore. */ |