From 4d5853334045cedb630716aec47e9cae49db3c9f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 20 Mar 1996 00:18:44 +0000 Subject: * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p. * math/math.h: Move M_* constants before __math.h include. [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this. * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern. If log10 is not defined (i.e. no -lm), use stupid loop instead. --- sysdeps/i386/fpu/__math.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/i386/fpu/__math.h b/sysdeps/i386/fpu/__math.h index 2a759c2..c9bae29 100644 --- a/sysdeps/i386/fpu/__math.h +++ b/sysdeps/i386/fpu/__math.h @@ -93,7 +93,7 @@ __MATH_INLINE double sin (double __x); __MATH_INLINE double sin (double __x) { - register double value; + register double __value; __asm __volatile__ ("fsin" : "=t" (__value) : "0" (__x)); @@ -179,7 +179,7 @@ exp (double __x) "fsub %%st(1) # fract(x * log2(e))\n\t" "f2xm1 # 2^(fract(x * log2(e))) - 1\n\t" : "=t" (__value), "=u" (__exponent) : "0" (__x)); - value += 1.0; + __value += 1.0; __asm __volatile__ ("fscale" : "=t" (__value) : "0" (__value), "u" (__exponent)); @@ -372,7 +372,6 @@ hypot (double __x, double __y) return sqrt (__x * __x + __y * __y); } -__MATH_INLINE double __log1p (double __x); __MATH_INLINE double log1p (double __x) { @@ -396,8 +395,8 @@ asinh (double __x) { register double __y = fabs (__x); - return __log1p ((__y * __y / (sqrt (__y * __y + 1.0) + 1.0) + __y) - * __sgn1 (__x)); + return log1p ((__y * __y / (sqrt (__y * __y + 1.0) + 1.0) + __y) + * __sgn1 (__x)); } __MATH_INLINE double __acosh (double __x); -- cgit v1.1