summaryrefslogtreecommitdiff
path: root/libm/w_exp.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-22 15:58:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-22 15:58:54 +0000
commit38b7304e932d52c8a4b250f35a1c8bcf6805d8ca (patch)
treedb12341ab2303620d70b9de8a5d52093a7262f3a /libm/w_exp.c
parentef9bd8dd3a1a6922839db782157e3f40f3411f32 (diff)
libm/*: mass removal of:
1. static char rcsid[] = "$NetBSD: ..." 2. /* @(#)s_scalbn.c 5.1 93/09/24 */ 3. #ifdef __STDC__ No code changes (verified with objdump)
Diffstat (limited to 'libm/w_exp.c')
-rw-r--r--libm/w_exp.c24
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;