summaryrefslogtreecommitdiff
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
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)
-rw-r--r--libm/README1
-rw-r--r--libm/e_acos.c16
-rw-r--r--libm/e_acosh.c17
-rw-r--r--libm/e_asin.c18
-rw-r--r--libm/e_atan2.c17
-rw-r--r--libm/e_atanh.c21
-rw-r--r--libm/e_cosh.c17
-rw-r--r--libm/e_exp.c17
-rw-r--r--libm/e_fmod.c16
-rw-r--r--libm/e_gamma.c10
-rw-r--r--libm/e_gamma_r.c11
-rw-r--r--libm/e_hypot.c12
-rw-r--r--libm/e_j0.c118
-rw-r--r--libm/e_j1.c122
-rw-r--r--libm/e_jn.c28
-rw-r--r--libm/e_lgamma.c10
-rw-r--r--libm/e_lgamma_r.c27
-rw-r--r--libm/e_log.c20
-rw-r--r--libm/e_log10.c22
-rw-r--r--libm/e_log2.c15
-rw-r--r--libm/e_pow.c17
-rw-r--r--libm/e_rem_pio2.c25
-rw-r--r--libm/e_remainder.c18
-rw-r--r--libm/e_scalb.c20
-rw-r--r--libm/e_sinh.c17
-rw-r--r--libm/e_sqrt.c20
-rw-r--r--libm/k_cos.c16
-rw-r--r--libm/k_rem_pio2.c25
-rw-r--r--libm/k_sin.c16
-rw-r--r--libm/k_standard.c18
-rw-r--r--libm/k_tan.c17
-rw-r--r--libm/math_private.h5
-rw-r--r--libm/s_asinh.c17
-rw-r--r--libm/s_atan.c31
-rw-r--r--libm/s_cbrt.c20
-rw-r--r--libm/s_ceil.c16
-rw-r--r--libm/s_copysign.c12
-rw-r--r--libm/s_cos.c12
-rw-r--r--libm/s_erf.c25
-rw-r--r--libm/s_expm1.c16
-rw-r--r--libm/s_fabs.c12
-rw-r--r--libm/s_fdim.c8
-rw-r--r--libm/s_finite.c1
-rw-r--r--libm/s_floor.c16
-rw-r--r--libm/s_fmax.c8
-rw-r--r--libm/s_fmin.c8
-rw-r--r--libm/s_fpclassify.c3
-rw-r--r--libm/s_frexp.c16
-rw-r--r--libm/s_ilogb.c12
-rw-r--r--libm/s_isinf.c3
-rw-r--r--libm/s_isinff.c3
-rw-r--r--libm/s_isnan.c1
-rw-r--r--libm/s_ldexp.c13
-rw-r--r--libm/s_lib_version.c5
-rw-r--r--libm/s_llround.c1
-rw-r--r--libm/s_log1p.c20
-rw-r--r--libm/s_logb.c13
-rw-r--r--libm/s_lround.c1
-rw-r--r--libm/s_matherr.c10
-rw-r--r--libm/s_modf.c16
-rw-r--r--libm/s_nearbyint.c7
-rw-r--r--libm/s_nextafter.c12
-rw-r--r--libm/s_remquo.c8
-rw-r--r--libm/s_rint.c16
-rw-r--r--libm/s_round.c2
-rw-r--r--libm/s_scalbln.c12
-rw-r--r--libm/s_scalbn.c17
-rw-r--r--libm/s_significand.c13
-rw-r--r--libm/s_sin.c12
-rw-r--r--libm/s_tan.c12
-rw-r--r--libm/s_tanh.c17
-rw-r--r--libm/s_trunc.c2
-rw-r--r--libm/w_acos.c12
-rw-r--r--libm/w_acosh.c12
-rw-r--r--libm/w_asin.c14
-rw-r--r--libm/w_atan2.c13
-rw-r--r--libm/w_atanh.c12
-rw-r--r--libm/w_cabs.c1
-rw-r--r--libm/w_cosh.c12
-rw-r--r--libm/w_drem.c1
-rw-r--r--libm/w_exp.c24
-rw-r--r--libm/w_exp2.c9
-rw-r--r--libm/w_fmod.c12
-rw-r--r--libm/w_gamma.c12
-rw-r--r--libm/w_gamma_r.c14
-rw-r--r--libm/w_hypot.c12
-rw-r--r--libm/w_j0.c19
-rw-r--r--libm/w_j1.c19
-rw-r--r--libm/w_jn.c19
-rw-r--r--libm/w_lgamma.c12
-rw-r--r--libm/w_lgamma_r.c12
-rw-r--r--libm/w_log.c12
-rw-r--r--libm/w_log10.c12
-rw-r--r--libm/w_log2.c5
-rw-r--r--libm/w_pow.c8
-rw-r--r--libm/w_remainder.c12
-rw-r--r--libm/w_scalb.c18
-rw-r--r--libm/w_sinh.c12
-rw-r--r--libm/w_sqrt.c12
-rw-r--r--libm/w_tgamma.c8
100 files changed, 113 insertions, 1425 deletions
diff --git a/libm/README b/libm/README
index 2c69a54af..306f03e40 100644
--- a/libm/README
+++ b/libm/README
@@ -13,4 +13,3 @@ is as follows:
It has been ported to work with uClibc and generally behave
by Erik Andersen <andersen@codepoet.org>
22 May, 2001
-
diff --git a/libm/e_acos.c b/libm/e_acos.c
index 265619325..5333b8e22 100644
--- a/libm/e_acos.c
+++ b/libm/e_acos.c
@@ -1,4 +1,3 @@
-/* @(#)e_acos.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: e_acos.c,v 1.9 1995/05/12 04:57:13 jtc Exp $";
-#endif
-
/* __ieee754_acos(x)
* Method :
* acos(x) = pi/2 - asin(x)
@@ -41,11 +36,7 @@ static char rcsid[] = "$NetBSD: e_acos.c,v 1.9 1995/05/12 04:57:13 jtc Exp $";
#include "math.h"
#include "math_private.h"
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
one= 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */
pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */
pio2_hi = 1.57079632679489655800e+00, /* 0x3FF921FB, 0x54442D18 */
@@ -61,12 +52,7 @@ qS2 = 2.02094576023350569471e+00, /* 0x40002AE5, 0x9C598AC8 */
qS3 = -6.88283971605453293030e-01, /* 0xBFE6066C, 0x1B8D0159 */
qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
-#ifdef __STDC__
- double attribute_hidden __ieee754_acos(double x)
-#else
- double attribute_hidden __ieee754_acos(x)
- double x;
-#endif
+double attribute_hidden __ieee754_acos(double x)
{
double z,p,q,r,w,s,c,df;
int32_t hx,ix;
diff --git a/libm/e_acosh.c b/libm/e_acosh.c
index 3d0a038f0..2c70ad7c8 100644
--- a/libm/e_acosh.c
+++ b/libm/e_acosh.c
@@ -1,4 +1,3 @@
-/* @(#)e_acosh.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: e_acosh.c,v 1.9 1995/05/12 04:57:18 jtc Exp $";
-#endif
-
/* __ieee754_acosh(x)
* Method :
* Based on
@@ -31,21 +26,11 @@ static char rcsid[] = "$NetBSD: e_acosh.c,v 1.9 1995/05/12 04:57:18 jtc Exp $";
#include "math.h"
#include "math_private.h"
-
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
one = 1.0,
ln2 = 6.93147180559945286227e-01; /* 0x3FE62E42, 0xFEFA39EF */
-#ifdef __STDC__
- double attribute_hidden __ieee754_acosh(double x)
-#else
- double attribute_hidden __ieee754_acosh(x)
- double x;
-#endif
+double attribute_hidden __ieee754_acosh(double x)
{
double t;
int32_t hx;
diff --git a/libm/e_asin.c b/libm/e_asin.c
index ce8372c2d..b3ab73ff8 100644
--- a/libm/e_asin.c
+++ b/libm/e_asin.c
@@ -1,4 +1,3 @@
-/* @(#)e_asin.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: e_asin.c,v 1.9 1995/05/12 04:57:22 jtc Exp $";
-#endif
-
/* __ieee754_asin(x)
* Method :
* Since asin(x) = x + x^3/6 + x^5*3/40 + x^7*15/336 + ...
@@ -44,16 +39,10 @@ static char rcsid[] = "$NetBSD: e_asin.c,v 1.9 1995/05/12 04:57:22 jtc Exp $";
*
*/
-
#include "math.h"
#include "math_private.h"
-
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */
huge = 1.000e+300,
pio2_hi = 1.57079632679489655800e+00, /* 0x3FF921FB, 0x54442D18 */
@@ -71,12 +60,7 @@ qS2 = 2.02094576023350569471e+00, /* 0x40002AE5, 0x9C598AC8 */
qS3 = -6.88283971605453293030e-01, /* 0xBFE6066C, 0x1B8D0159 */
qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
-#ifdef __STDC__
- double attribute_hidden __ieee754_asin(double x)
-#else
- double attribute_hidden __ieee754_asin(x)
- double x;
-#endif
+double attribute_hidden __ieee754_asin(double x)
{
double t=0.0,w,p,q,c,r,s;
int32_t hx,ix;
diff --git a/libm/e_atan2.c b/libm/e_atan2.c
index 407a12920..71c916d52 100644
--- a/libm/e_atan2.c
+++ b/libm/e_atan2.c
@@ -1,4 +1,3 @@
-/* @(#)e_atan2.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: e_atan2.c,v 1.8 1995/05/10 20:44:51 jtc Exp $";
-#endif
-
/* __ieee754_atan2(y,x)
* Method :
* 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x).
@@ -44,12 +39,7 @@ static char rcsid[] = "$NetBSD: e_atan2.c,v 1.8 1995/05/10 20:44:51 jtc Exp $";
#include "math.h"
#include "math_private.h"
-
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
tiny = 1.0e-300,
zero = 0.0,
pi_o_4 = 7.8539816339744827900E-01, /* 0x3FE921FB, 0x54442D18 */
@@ -57,12 +47,7 @@ pi_o_2 = 1.5707963267948965580E+00, /* 0x3FF921FB, 0x54442D18 */
pi = 3.1415926535897931160E+00, /* 0x400921FB, 0x54442D18 */
pi_lo = 1.2246467991473531772E-16; /* 0x3CA1A626, 0x33145C07 */
-#ifdef __STDC__
- double attribute_hidden __ieee754_atan2(double y, double x)
-#else
- double attribute_hidden __ieee754_atan2(y,x)
- double y,x;
-#endif
+double attribute_hidden __ieee754_atan2(double y, double x)
{
double z;
int32_t k,m,hx,hy,ix,iy;
diff --git a/libm/e_atanh.c b/libm/e_atanh.c
index c6c47bcfa..673ef0cd6 100644
--- a/libm/e_atanh.c
+++ b/libm/e_atanh.c
@@ -1,4 +1,3 @@
-/* @(#)e_atanh.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: e_atanh.c,v 1.8 1995/05/10 20:44:55 jtc Exp $";
-#endif
-
/* __ieee754_atanh(x)
* Method :
* 1.Reduced x to positive by atanh(-x) = -atanh(x)
@@ -35,25 +30,11 @@ static char rcsid[] = "$NetBSD: e_atanh.c,v 1.8 1995/05/10 20:44:55 jtc Exp $";
#include "math.h"
#include "math_private.h"
-
-#ifdef __STDC__
static const double one = 1.0, huge = 1e300;
-#else
-static double one = 1.0, huge = 1e300;
-#endif
-#ifdef __STDC__
static const double zero = 0.0;
-#else
-static double zero = 0.0;
-#endif
-#ifdef __STDC__
- double attribute_hidden __ieee754_atanh(double x)
-#else
- double attribute_hidden __ieee754_atanh(x)
- double x;
-#endif
+double attribute_hidden __ieee754_atanh(double x)
{
double t;
int32_t hx,ix;
diff --git a/libm/e_cosh.c b/libm/e_cosh.c
index a7e5e4496..ddfd0254b 100644
--- a/libm/e_cosh.c
+++ b/libm/e_cosh.c
@@ -1,4 +1,3 @@
-/* @(#)e_cosh.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: e_cosh.c,v 1.7 1995/05/10 20:44:58 jtc Exp $";
-#endif
-
/* __ieee754_cosh(x)
* Method :
* mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2
@@ -38,19 +33,9 @@ static char rcsid[] = "$NetBSD: e_cosh.c,v 1.7 1995/05/10 20:44:58 jtc Exp $";
#include "math.h"
#include "math_private.h"
-
-#ifdef __STDC__
static const double one = 1.0, half=0.5, huge = 1.0e300;
-#else
-static double one = 1.0, half=0.5, huge = 1.0e300;
-#endif
-#ifdef __STDC__
- double attribute_hidden __ieee754_cosh(double x)
-#else
- double attribute_hidden __ieee754_cosh(x)
- double x;
-#endif
+double attribute_hidden __ieee754_cosh(double x)
{
double t,w;
int32_t ix;
diff --git a/libm/e_exp.c b/libm/e_exp.c
index f9c5371d9..ebf2e5af0 100644
--- a/libm/e_exp.c
+++ b/libm/e_exp.c
@@ -1,4 +1,3 @@
-/* @(#)e_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: e_exp.c,v 1.8 1995/05/10 20:45:03 jtc Exp $";
-#endif
-
/* __ieee754_exp(x)
* Returns the exponential of x.
*
@@ -80,11 +75,7 @@ static char rcsid[] = "$NetBSD: e_exp.c,v 1.8 1995/05/10 20:45:03 jtc Exp $";
#include "math.h"
#include "math_private.h"
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
one = 1.0,
halF[2] = {0.5,-0.5,},
huge = 1.0e+300,
@@ -102,13 +93,7 @@ P3 = 6.61375632143793436117e-05, /* 0x3F11566A, 0xAF25DE2C */
P4 = -1.65339022054652515390e-06, /* 0xBEBBBD41, 0xC5D26BF1 */
P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */
-
-#ifdef __STDC__
- double attribute_hidden __ieee754_exp(double x) /* default IEEE double exp */
-#else
- double attribute_hidden __ieee754_exp(x) /* default IEEE double exp */
- double x;
-#endif
+double attribute_hidden __ieee754_exp(double x) /* default IEEE double exp */
{
double y;
double hi = 0.0;
diff --git a/libm/e_fmod.c b/libm/e_fmod.c
index 1e8487cf0..02cce63b0 10064