diff options
Diffstat (limited to 'libm/w_exp.c')
-rw-r--r-- | libm/w_exp.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/libm/w_exp.c b/libm/w_exp.c index 067279664..bd9af7ae5 100644 --- a/libm/w_exp.c +++ b/libm/w_exp.c @@ -1,4 +1,3 @@ -/* @(#)w_exp.c 5.1 93/09/24 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -10,10 +9,6 @@ * ==================================================== */ -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: w_exp.c,v 1.6 1995/05/10 20:48:51 jtc Exp $"; -#endif - /* * wrapper exp(x) */ @@ -21,24 +16,15 @@ static char rcsid[] = "$NetBSD: w_exp.c,v 1.6 1995/05/10 20:48:51 jtc Exp $"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ -static const double -#else -static double -#endif -o_threshold= 7.09782712893383973096e+02, /* 0x40862E42, 0xFEFA39EF */ -u_threshold= -7.45133219101941108420e+02; /* 0xc0874910, 0xD52D3051 */ - -#ifdef __STDC__ - double exp(double x) /* wrapper exp */ -#else - double exp(x) /* wrapper exp */ - double x; -#endif +double exp(double x) /* wrapper exp */ { #ifdef _IEEE_LIBM return __ieee754_exp(x); #else + static const double + o_threshold= 7.09782712893383973096e+02, /* 0x40862E42, 0xFEFA39EF */ + u_threshold= -7.45133219101941108420e+02; /* 0xc0874910, 0xD52D3051 */ + double z; z = __ieee754_exp(x); if(_LIB_VERSION == _IEEE_) return z; |