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. --- math/math.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'math') diff --git a/math/math.h b/math/math.h index 2693fcc9d0..6915a9eb86 100644 --- a/math/math.h +++ b/math/math.h @@ -115,13 +115,6 @@ extern int matherr __P ((struct exception *)); #endif -/* Get machine-dependent inline versions (if there are any). */ -#include <__math.h> - - -__END_DECLS - - #ifdef __USE_BSD /* Some useful constants. */ #define M_E 2.7182818284590452354 /* e */ @@ -140,4 +133,13 @@ __END_DECLS #endif +/* Get machine-dependent inline versions (if there are any). */ +#if defined (__NO_MATH_INLINES) || defined (__OPTIMIZE__) +#include <__math.h> +#endif + + +__END_DECLS + + #endif /* math.h */ -- cgit v1.2.1