diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-05-28 17:51:46 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-05-28 17:51:46 +0000 |
commit | 2dcc228679cb39677331f1064bedb9eac825a52f (patch) | |
tree | 8cb4143d5f74c1c235f3d5ef0547bdf3f395a536 | |
parent | d9d34030a4088431c5cc12a6ee1ce024c6b48777 (diff) | |
download | src-test2-2dcc228679cb39677331f1064bedb9eac825a52f.tar.gz src-test2-2dcc228679cb39677331f1064bedb9eac825a52f.zip |
Notes
141 files changed, 5 insertions, 1502 deletions
diff --git a/lib/msun/src/e_gammaf_r.c b/lib/msun/src/e_gammaf_r.c index 6847aa79ddd7..88a3ff7f4f1c 100644 --- a/lib/msun/src/e_gammaf_r.c +++ b/lib/msun/src/e_gammaf_r.c @@ -27,12 +27,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float __ieee754_gammaf_r(float x, int *signgamp) -#else - float __ieee754_gammaf_r(x,signgamp) - float x; int *signgamp; -#endif { return __ieee754_lgammaf_r(x,signgamp); } diff --git a/lib/msun/src/e_hypot.c b/lib/msun/src/e_hypot.c index 40af9c789f58..ae501271d420 100644 --- a/lib/msun/src/e_hypot.c +++ b/lib/msun/src/e_hypot.c @@ -49,12 +49,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double __ieee754_hypot(double x, double y) -#else - double __ieee754_hypot(x,y) - double x, y; -#endif { double a=x,b=y,t1,t2,y1,y2,w; int32_t j,k,ha,hb; diff --git a/lib/msun/src/e_hypotf.c b/lib/msun/src/e_hypotf.c index 52b2288876b5..630c341273ca 100644 --- a/lib/msun/src/e_hypotf.c +++ b/lib/msun/src/e_hypotf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float __ieee754_hypotf(float x, float y) -#else - float __ieee754_hypot(x,y) - float x, y; -#endif { float a=x,b=y,t1,t2,y1,y2,w; int32_t j,k,ha,hb; diff --git a/lib/msun/src/e_j0.c b/lib/msun/src/e_j0.c index 1747d784d6bb..dbcd32774e61 100644 --- a/lib/msun/src/e_j0.c +++ b/lib/msun/src/e_j0.c @@ -62,17 +62,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static double pzero(double), qzero(double); -#else -static double pzero(), qzero(); -#endif -#ifdef __STDC__ static const double -#else -static double -#endif huge = 1e300, one = 1.0, invsqrtpi= 5.64189583547756279280e-01, /* 0x3FE20DD7, 0x50429B6D */ @@ -87,18 +79,9 @@ S02 = 1.16926784663337450260e-04, /* 0x3F1EA6D2, 0xDD57DBF4 */ S03 = 5.13546550207318111446e-07, /* 0x3EA13B54, 0xCE84D5A9 */ S04 = 1.16614003333790000205e-09; /* 0x3E1408BC, 0xF4745D8F */ -#ifdef __STDC__ static const double zero = 0.0; -#else -static double zero = 0.0; -#endif -#ifdef __STDC__ double __ieee754_j0(double x) -#else - double __ieee754_j0(x) - double x; -#endif { double z, s,c,ss,cc,r,u,v; int32_t hx,ix; @@ -145,11 +128,7 @@ static double zero = 0.0; } } -#ifdef __STDC__ static const double -#else -static double -#endif u00 = -7.38042951086872317523e-02, /* 0xBFB2E4D6, 0x99CBD01F */ u01 = 1.76666452509181115538e-01, /* 0x3FC69D01, 0x9DE9E3FC */ u02 = -1.38185671945596898896e-02, /* 0xBF8C4CE8, 0xB16CFA97 */ @@ -162,12 +141,7 @@ v02 = 7.60068627350353253702e-05, /* 0x3F13ECBB, 0xF578C6C1 */ v03 = 2.59150851840457805467e-07, /* 0x3E91642D, 0x7FF202FD */ v04 = 4.41110311332675467403e-10; /* 0x3DFE5018, 0x3BD6D9EF */ -#ifdef __STDC__ double __ieee754_y0(double x) -#else - double __ieee754_y0(x) - double x; -#endif { double z, s,c,ss,cc,u,v; int32_t hx,ix,lx; @@ -228,11 +202,7 @@ v04 = 4.41110311332675467403e-10; /* 0x3DFE5018, 0x3BD6D9EF */ * and * | pzero(x)-1-R/S | <= 2 ** ( -60.26) */ -#ifdef __STDC__ static const double pR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static double pR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.00000000000000000000e+00, /* 0x00000000, 0x00000000 */ -7.03124999999900357484e-02, /* 0xBFB1FFFF, 0xFFFFFD32 */ -8.08167041275349795626e+00, /* 0xC02029D0, 0xB44FA779 */ @@ -240,11 +210,7 @@ static double pR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -2.48521641009428822144e+03, /* 0xC0A36A6E, 0xCD4DCAFC */ -5.25304380490729545272e+03, /* 0xC0B4850B, 0x36CC643D */ }; -#ifdef __STDC__ static const double pS8[5] = { -#else -static double pS8[5] = { -#endif 1.16534364619668181717e+02, /* 0x405D2233, 0x07A96751 */ 3.83374475364121826715e+03, /* 0x40ADF37D, 0x50596938 */ 4.05978572648472545552e+04, /* 0x40E3D2BB, 0x6EB6B05F */ @@ -252,11 +218,7 @@ static double pS8[5] = { 4.76277284146730962675e+04, /* 0x40E74177, 0x4F2C49DC */ }; -#ifdef __STDC__ static const double pR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static double pR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif -1.14125464691894502584e-11, /* 0xBDA918B1, 0x47E495CC */ -7.03124940873599280078e-02, /* 0xBFB1FFFF, 0xE69AFBC6 */ -4.15961064470587782438e+00, /* 0xC010A370, 0xF90C6BBF */ @@ -264,11 +226,7 @@ static double pR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -3.31231299649172967747e+02, /* 0xC074B3B3, 0x6742CC63 */ -3.46433388365604912451e+02, /* 0xC075A6EF, 0x28A38BD7 */ }; -#ifdef __STDC__ static const double pS5[5] = { -#else -static double pS5[5] = { -#endif 6.07539382692300335975e+01, /* 0x404E6081, 0x0C98C5DE */ 1.05125230595704579173e+03, /* 0x40906D02, 0x5C7E2864 */ 5.97897094333855784498e+03, /* 0x40B75AF8, 0x8FBE1D60 */ @@ -276,11 +234,7 @@ static double pS5[5] = { 2.40605815922939109441e+03, /* 0x40A2CC1D, 0xC70BE864 */ }; -#ifdef __STDC__ static const double pR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#else -static double pR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif -2.54704601771951915620e-09, /* 0xBE25E103, 0x6FE1AA86 */ -7.03119616381481654654e-02, /* 0xBFB1FFF6, 0xF7C0E24B */ -2.40903221549529611423e+00, /* 0xC00345B2, 0xAEA48074 */ @@ -288,11 +242,7 @@ static double pR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -5.80791704701737572236e+01, /* 0xC04D0A22, 0x420A1A45 */ -3.14479470594888503854e+01, /* 0xC03F72AC, 0xA892D80F */ }; -#ifdef __STDC__ static const double pS3[5] = { -#else -static double pS3[5] = { -#endif 3.58560338055209726349e+01, /* 0x4041ED92, 0x84077DD3 */ 3.61513983050303863820e+02, /* 0x40769839, 0x464A7C0E */ 1.19360783792111533330e+03, /* 0x4092A66E, 0x6D1061D6 */ @@ -300,11 +250,7 @@ static double pS3[5] = { 1.73580930813335754692e+02, /* 0x4065B296, 0xFC379081 */ }; -#ifdef __STDC__ static const double pR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static double pR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif -8.87534333032526411254e-08, /* 0xBE77D316, 0xE927026D */ -7.03030995483624743247e-02, /* 0xBFB1FF62, 0x495E1E42 */ -1.45073846780952986357e+00, /* 0xBFF73639, 0x8A24A843 */ @@ -312,11 +258,7 @@ static double pR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -1.11931668860356747786e+01, /* 0xC02662E6, 0xC5246303 */ -3.23364579351335335033e+00, /* 0xC009DE81, 0xAF8FE70F */ }; -#ifdef __STDC__ static const double pS2[5] = { -#else -static double pS2[5] = { -#endif 2.22202997532088808441e+01, /* 0x40363865, 0x908B5959 */ 1.36206794218215208048e+02, /* 0x4061069E, 0x0EE8878F */ 2.70470278658083486789e+02, /* 0x4070E786, 0x42EA079B */ @@ -324,18 +266,9 @@ static double pS2[5] = { 1.46576176948256193810e+01, /* 0x402D50B3, 0x44391809 */ }; -#ifdef __STDC__ static double pzero(double x) -#else - static double pzero(x) - double x; -#endif { -#ifdef __STDC__ const double *p,*q; -#else - double *p,*q; -#endif double z,r,s; int32_t ix; GET_HIGH_WORD(ix,x); @@ -360,11 +293,7 @@ static double pS2[5] = { * and * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) */ -#ifdef __STDC__ static const double qR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static double qR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.00000000000000000000e+00, /* 0x00000000, 0x00000000 */ 7.32421874999935051953e-02, /* 0x3FB2BFFF, 0xFFFFFE2C */ 1.17682064682252693899e+01, /* 0x40278952, 0x5BB334D6 */ @@ -372,11 +301,7 @@ static double qR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ 8.85919720756468632317e+03, /* 0x40C14D99, 0x3E18F46D */ 3.70146267776887834771e+04, /* 0x40E212D4, 0x0E901566 */ }; -#ifdef __STDC__ static const double qS8[6] = { -#else -static double qS8[6] = { -#endif 1.63776026895689824414e+02, /* 0x406478D5, 0x365B39BC */ 8.09834494656449805916e+03, /* 0x40BFA258, 0x4E6B0563 */ 1.42538291419120476348e+05, /* 0x41016652, 0x54D38C3F */ @@ -385,11 +310,7 @@ static double qS8[6] = { -3.43899293537866615225e+05, /* 0xC114FD6D, 0x2C9530C5 */ }; -#ifdef __STDC__ static const double qR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static double qR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif 1.84085963594515531381e-11, /* 0x3DB43D8F, 0x29CC8CD9 */ 7.32421766612684765896e-02, /* 0x3FB2BFFF, 0xD172B04C */ 5.83563508962056953777e+00, /* 0x401757B0, 0xB9953DD3 */ @@ -397,11 +318,7 @@ static double qR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ 1.02724376596164097464e+03, /* 0x40900CF9, 0x9DC8C481 */ 1.98997785864605384631e+03, /* 0x409F17E9, 0x53C6E3A6 */ }; -#ifdef __STDC__ static const double qS5[6] = { -#else -static double qS5[6] = { -#endif 8.27766102236537761883e+01, /* 0x4054B1B3, 0xFB5E1543 */ 2.07781416421392987104e+03, /* 0x40A03BA0, 0xDA21C0CE */ 1.88472887785718085070e+04, /* 0x40D267D2, 0x7B591E6D */ @@ -410,11 +327,7 @@ static double qS5[6] = { -5.35434275601944773371e+03, /* 0xC0B4EA57, 0xBEDBC609 */ }; -#ifdef __STDC__ static const double qR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#else -static double qR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif 4.37741014089738620906e-09, /* 0x3E32CD03, 0x6ADECB82 */ 7.32411180042911447163e-02, /* 0x3FB2BFEE, 0x0E8D0842 */ 3.34423137516170720929e+00, /* 0x400AC0FC, 0x61149CF5 */ @@ -422,11 +335,7 @@ static double qR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ 1.70808091340565596283e+02, /* 0x406559DB, 0xE25EFD1F */ 1.66733948696651168575e+02, /* 0x4064D77C, 0x81FA21E0 */ }; -#ifdef __STDC__ static const double qS3[6] = { -#else -static double qS3[6] = { -#endif 4.87588729724587182091e+01, /* 0x40486122, 0xBFE343A6 */ 7.09689221056606015736e+02, /* 0x40862D83, 0x86544EB3 */ 3.70414822620111362994e+03, /* 0x40ACF04B, 0xE44DFC63 */ @@ -435,11 +344,7 @@ static double qS3[6] = { -1.49247451836156386662e+02, /* 0xC062A7EB, 0x201CF40F */ }; -#ifdef __STDC__ static const double qR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static double qR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif 1.50444444886983272379e-07, /* 0x3E84313B, 0x54F76BDB */ 7.32234265963079278272e-02, /* 0x3FB2BEC5, 0x3E883E34 */ 1.99819174093815998816e+00, /* 0x3FFFF897, 0xE727779C */ @@ -447,11 +352,7 @@ static double qR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ 3.16662317504781540833e+01, /* 0x403FAA8E, 0x29FBDC4A */ 1.62527075710929267416e+01, /* 0x403040B1, 0x71814BB4 */ }; -#ifdef __STDC__ static const double qS2[6] = { -#else -static double qS2[6] = { -#endif 3.03655848355219184498e+01, /* 0x403E5D96, 0xF7C07AED */ 2.69348118608049844624e+02, /* 0x4070D591, 0xE4D14B40 */ 8.44783757595320139444e+02, /* 0x408A6645, 0x22B3BF22 */ @@ -460,18 +361,9 @@ static double qS2[6] = { -5.31095493882666946917e+00, /* 0xC0153E6A, 0xF8B32931 */ }; -#ifdef __STDC__ static double qzero(double x) -#else - static double qzero(x) - double x; -#endif { -#ifdef __STDC__ const double *p,*q; -#else - double *p,*q; -#endif double s,r,z; int32_t ix; GET_HIGH_WORD(ix,x); diff --git a/lib/msun/src/e_j0f.c b/lib/msun/src/e_j0f.c index ad27122ac163..c0e277a88950 100644 --- a/lib/msun/src/e_j0f.c +++ b/lib/msun/src/e_j0f.c @@ -20,17 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static float pzerof(float), qzerof(float); -#else -static float pzerof(), qzerof(); -#endif -#ifdef __STDC__ static const float -#else -static float -#endif huge = 1e30, one = 1.0, invsqrtpi= 5.6418961287e-01, /* 0x3f106ebb */ @@ -45,18 +37,9 @@ S02 = 1.1692678527e-04, /* 0x38f53697 */ S03 = 5.1354652442e-07, /* 0x3509daa6 */ S04 = 1.1661400734e-09; /* 0x30a045e8 */ -#ifdef __STDC__ static const float zero = 0.0; -#else -static float zero = 0.0; -#endif -#ifdef __STDC__ float __ieee754_j0f(float x) -#else - float __ieee754_j0f(x) - float x; -#endif { float z, s,c,ss,cc,r,u,v; int32_t hx,ix; @@ -103,11 +86,7 @@ static float zero = 0.0; } } -#ifdef __STDC__ static const float -#else -static float -#endif u00 = -7.3804296553e-02, /* 0xbd9726b5 */ u01 = 1.7666645348e-01, /* 0x3e34e80d */ u02 = -1.3818567619e-02, /* 0xbc626746 */ @@ -120,12 +99,7 @@ v02 = 7.6006865129e-05, /* 0x389f65e0 */ v03 = 2.5915085189e-07, /* 0x348b216c */ v04 = 4.4111031494e-10; /* 0x2ff280c2 */ -#ifdef __STDC__ float __ieee754_y0f(float x) -#else - float __ieee754_y0f(x) - float x; -#endif { float z, s,c,ss,cc,u,v; int32_t hx,ix; @@ -186,11 +160,7 @@ v04 = 4.4111031494e-10; /* 0x2ff280c2 */ * and * | pzero(x)-1-R/S | <= 2 ** ( -60.26) */ -#ifdef __STDC__ static const float pR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static float pR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.0000000000e+00, /* 0x00000000 */ -7.0312500000e-02, /* 0xbd900000 */ -8.0816707611e+00, /* 0xc1014e86 */ @@ -198,22 +168,14 @@ static float pR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -2.4852163086e+03, /* 0xc51b5376 */ -5.2530439453e+03, /* 0xc5a4285a */ }; -#ifdef __STDC__ static const float pS8[5] = { -#else -static float pS8[5] = { -#endif 1.1653436279e+02, /* 0x42e91198 */ 3.8337448730e+03, /* 0x456f9beb */ 4.0597855469e+04, /* 0x471e95db */ 1.1675296875e+05, /* 0x47e4087c */ 4.7627726562e+04, /* 0x473a0bba */ }; -#ifdef __STDC__ static const float pR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static float pR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif -1.1412546255e-11, /* 0xad48c58a */ -7.0312492549e-02, /* 0xbd8fffff */ -4.1596107483e+00, /* 0xc0851b88 */ @@ -221,11 +183,7 @@ static float pR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -3.3123129272e+02, /* 0xc3a59d9b */ -3.4643338013e+02, /* 0xc3ad3779 */ }; -#ifdef __STDC__ static const float pS5[5] = { -#else -static float pS5[5] = { -#endif 6.0753936768e+01, /* 0x42730408 */ 1.0512523193e+03, /* 0x44836813 */ 5.9789707031e+03, /* 0x45bad7c4 */ @@ -233,11 +191,7 @@ static float pS5[5] = { 2.4060581055e+03, /* 0x451660ee */ }; -#ifdef __STDC__ static const float pR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#else -static float pR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif -2.5470459075e-09, /* 0xb12f081b */ -7.0311963558e-02, /* 0xbd8fffb8 */ -2.4090321064e+00, /* 0xc01a2d95 */ @@ -245,11 +199,7 @@ static float pR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -5.8079170227e+01, /* 0xc2685112 */ -3.1447946548e+01, /* 0xc1fb9565 */ }; -#ifdef __STDC__ static const float pS3[5] = { -#else -static float pS3[5] = { -#endif 3.5856033325e+01, /* 0x420f6c94 */ 3.6151397705e+02, /* 0x43b4c1ca */ 1.1936077881e+03, /* 0x44953373 */ @@ -257,11 +207,7 @@ static float pS3[5] = { 1.7358093262e+02, /* 0x432d94b8 */ }; -#ifdef __STDC__ static const float pR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static float pR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif -8.8753431271e-08, /* 0xb3be98b7 */ -7.0303097367e-02, /* 0xbd8ffb12 */ -1.4507384300e+00, /* 0xbfb9b1cc */ @@ -269,11 +215,7 @@ static float pR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -1.1193166733e+01, /* 0xc1331736 */ -3.2336456776e+00, /* 0xc04ef40d */ }; -#ifdef __STDC__ static const float pS2[5] = { -#else -static float pS2[5] = { -#endif 2.2220300674e+01, /* 0x41b1c32d */ 1.3620678711e+02, /* 0x430834f0 */ 2.7047027588e+02, /* 0x43873c32 */ @@ -281,18 +223,9 @@ static float pS2[5] = { 1.4657617569e+01, /* 0x416a859a */ }; -#ifdef __STDC__ static float pzerof(float x) -#else - static float pzerof(x) - float x; -#endif { -#ifdef __STDC__ const float *p,*q; -#else - float *p,*q; -#endif float z,r,s; int32_t ix; GET_FLOAT_WORD(ix,x); @@ -317,11 +250,7 @@ static float pS2[5] = { * and * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) */ -#ifdef __STDC__ static const float qR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static float qR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.0000000000e+00, /* 0x00000000 */ 7.3242187500e-02, /* 0x3d960000 */ 1.1768206596e+01, /* 0x413c4a93 */ @@ -329,11 +258,7 @@ static float qR8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ 8.8591972656e+03, /* 0x460a6cca */ 3.7014625000e+04, /* 0x471096a0 */ }; -#ifdef __STDC__ static const float qS8[6] = { -#else -static float qS8[6] = { -#endif 1.6377603149e+02, /* 0x4323c6aa */ 8.0983447266e+03, /* 0x45fd12c2 */ 1.4253829688e+05, /* 0x480b3293 */ @@ -342,11 +267,7 @@ static float qS8[6] = { -3.4389928125e+05, /* 0xc8a7eb69 */ }; -#ifdef __STDC__ static const float qR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static float qR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif 1.8408595828e-11, /* 0x2da1ec79 */ 7.3242180049e-02, /* 0x3d95ffff */ 5.8356351852e+00, /* 0x40babd86 */ @@ -354,11 +275,7 @@ static float qR5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ 1.0272437744e+03, /* 0x448067cd */ 1.9899779053e+03, /* 0x44f8bf4b */ }; -#ifdef __STDC__ static const float qS5[6] = { -#else -static float qS5[6] = { -#endif 8.2776611328e+01, /* 0x42a58da0 */ 2.0778142090e+03, /* 0x4501dd07 */ 1.8847289062e+04, /* 0x46933e94 */ @@ -367,11 +284,7 @@ static float qS5[6] = { -5.3543427734e+03, /* 0xc5a752be */ }; -#ifdef __STDC__ static const float qR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#else -static float qR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif 4.3774099900e-09, /* 0x3196681b */ 7.3241114616e-02, /* 0x3d95ff70 */ 3.3442313671e+00, /* 0x405607e3 */ @@ -379,11 +292,7 @@ static float qR3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ 1.7080809021e+02, /* 0x432acedf */ 1.6673394775e+02, /* 0x4326bbe4 */ }; -#ifdef __STDC__ static const float qS3[6] = { -#else -static float qS3[6] = { -#endif 4.8758872986e+01, /* 0x42430916 */ 7.0968920898e+02, /* 0x44316c1c */ 3.7041481934e+03, /* 0x4567825f */ @@ -392,11 +301,7 @@ static float qS3[6] = { -1.4924745178e+02, /* 0xc3153f59 */ }; -#ifdef __STDC__ static const float qR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static float qR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif 1.5044444979e-07, /* 0x342189db */ 7.3223426938e-02, /* 0x3d95f62a */ 1.9981917143e+00, /* 0x3fffc4bf */ @@ -404,11 +309,7 @@ static float qR2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ 3.1666231155e+01, /* 0x41fd5471 */ 1.6252708435e+01, /* 0x4182058c */ }; -#ifdef __STDC__ static const float qS2[6] = { -#else -static float qS2[6] = { -#endif 3.0365585327e+01, /* 0x41f2ecb8 */ 2.6934811401e+02, /* 0x4386ac8f */ 8.4478375244e+02, /* 0x44533229 */ @@ -417,18 +318,9 @@ static float qS2[6] = { -5.3109550476e+00, /* 0xc0a9f358 */ }; -#ifdef __STDC__ static float qzerof(float x) -#else - static float qzerof(x) - float x; -#endif { -#ifdef __STDC__ const float *p,*q; -#else - float *p,*q; -#endif float s,r,z; int32_t ix; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/e_j1.c b/lib/msun/src/e_j1.c index 6d60a785bf56..4c0ed5be8610 100644 --- a/lib/msun/src/e_j1.c +++ b/lib/msun/src/e_j1.c @@ -62,17 +62,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static double pone(double), qone(double); -#else -static double pone(), qone(); -#endif -#ifdef __STDC__ static const double -#else -static double -#endif huge = 1e300, one = 1.0, invsqrtpi= 5.64189583547756279280e-01, /* 0x3FE20DD7, 0x50429B6D */ @@ -88,18 +80,9 @@ s03 = 1.17718464042623683263e-06, /* 0x3EB3BFF8, 0x333F8498 */ s04 = 5.04636257076217042715e-09, /* 0x3E35AC88, 0xC97DFF2C */ s05 = 1.23542274426137913908e-11; /* 0x3DAB2ACF, 0xCFB97ED8 */ -#ifdef __STDC__ static const double zero = 0.0; -#else -static double zero = 0.0; -#endif -#ifdef __STDC__ double __ieee754_j1(double x) -#else - double __ieee754_j1(x) - double x; -#endif { double z, s,c,ss,cc,r,u,v,y; int32_t hx,ix; @@ -140,22 +123,14 @@ static double zero = 0.0; return(x*0.5+r/s); } -#ifdef __STDC__ static const double U0[5] = { -#else -static double U0[5] = { -#endif -1.96057090646238940668e-01, /* 0xBFC91866, 0x143CBC8A */ 5.04438716639811282616e-02, /* 0x3FA9D3C7, 0x76292CD1 */ -1.91256895875763547298e-03, /* 0xBF5F55E5, 0x4844F50F */ 2.35252600561610495928e-05, /* 0x3EF8AB03, 0x8FA6B88E */ -9.19099158039878874504e-08, /* 0xBE78AC00, 0x569105B8 */ }; -#ifdef __STDC__ static const double V0[5] = { -#else -static double V0[5] = { -#endif 1.99167318236649903973e-02, /* 0x3F94650D, 0x3F4DA9F0 */ 2.02552581025135171496e-04, /* 0x3F2A8C89, 0x6C257764 */ 1.35608801097516229404e-06, /* 0x3EB6C05A, 0x894E8CA6 */ @@ -163,12 +138,7 @@ static double V0[5] = { 1.66559246207992079114e-11, /* 0x3DB25039, 0xDACA772A */ }; -#ifdef __STDC__ double __ieee754_y1(double x) -#else - double __ieee754_y1(x) - double x; -#endif { double z, s,c,ss,cc,u,v; int32_t hx,ix,lx; @@ -226,11 +196,7 @@ static double V0[5] = { * | pone(x)-1-R/S | <= 2 ** ( -60.06) */ -#ifdef __STDC__ static const double pr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static double pr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.00000000000000000000e+00, /* 0x00000000, 0x00000000 */ 1.17187499999988647970e-01, /* 0x3FBDFFFF, 0xFFFFFCCE */ 1.32394806593073575129e+01, /* 0x402A7A9D, 0x357F7FCE */ @@ -238,11 +204,7 @@ static double pr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ 3.87474538913960532227e+03, /* 0x40AE457D, 0xA3A532CC */ 7.91447954031891731574e+03, /* 0x40BEEA7A, 0xC32782DD */ }; -#ifdef __STDC__ static const double ps8[5] = { -#else -static double ps8[5] = { -#endif 1.14207370375678408436e+02, /* 0x405C8D45, 0x8E656CAC */ 3.65093083420853463394e+03, /* 0x40AC85DC, 0x964D274F */ 3.69562060269033463555e+04, /* 0x40E20B86, 0x97C5BB7F */ @@ -250,11 +212,7 @@ static double ps8[5] = { 3.08042720627888811578e+04, /* 0x40DE1511, 0x697A0B2D */ }; -#ifdef __STDC__ static const double pr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static double pr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif 1.31990519556243522749e-11, /* 0x3DAD0667, 0xDAE1CA7D */ 1.17187493190614097638e-01, /* 0x3FBDFFFF, 0xE2C10043 */ 6.80275127868432871736e+00, /* 0x401B3604, 0x6E6315E3 */ @@ -262,11 +220,7 @@ static double pr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ 5.17636139533199752805e+02, /* 0x40802D16, 0xD052D649 */ 5.28715201363337541807e+02, /* 0x408085B8, 0xBB7E0CB7 */ }; -#ifdef __STDC__ static const double ps5[5] = { -#else -static double ps5[5] = { -#endif 5.92805987221131331921e+01, /* 0x404DA3EA, 0xA8AF633D */ 9.91401418733614377743e+02, /* 0x408EFB36, 0x1B066701 */ 5.35326695291487976647e+03, /* 0x40B4E944, 0x5706B6FB */ @@ -274,11 +228,7 @@ static double ps5[5] = { 1.50404688810361062679e+03, /* 0x40978030, 0x036F5E51 */ }; -#ifdef __STDC__ static const double pr3[6] = { -#else -static double pr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif 3.02503916137373618024e-09, /* 0x3E29FC21, 0xA7AD9EDD */ 1.17186865567253592491e-01, /* 0x3FBDFFF5, 0x5B21D17B */ 3.93297750033315640650e+00, /* 0x400F76BC, 0xE85EAD8A */ @@ -286,11 +236,7 @@ static double pr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ 9.10550110750781271918e+01, /* 0x4056C385, 0x4D2C1837 */ 4.85590685197364919645e+01, /* 0x4048478F, 0x8EA83EE5 */ }; -#ifdef __STDC__ static const double ps3[5] = { -#else -static double ps3[5] = { -#endif 3.47913095001251519989e+01, /* 0x40416549, 0xA134069C */ 3.36762458747825746741e+02, /* 0x40750C33, 0x07F1A75F */ 1.04687139975775130551e+03, /* 0x40905B7C, 0x5037D523 */ @@ -298,11 +244,7 @@ static double ps3[5] = { 1.03787932439639277504e+02, /* 0x4059F26D, 0x7C2EED53 */ }; -#ifdef __STDC__ static const double pr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static double pr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif 1.07710830106873743082e-07, /* 0x3E7CE9D4, 0xF65544F4 */ 1.17176219462683348094e-01, /* 0x3FBDFF42, 0xBE760D83 */ 2.36851496667608785174e+00, /* 0x4002F2B7, 0xF98FAEC0 */ @@ -310,11 +252,7 @@ static double pr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ 1.76939711271687727390e+01, /* 0x4031B1A8, 0x177F8EE2 */ 5.07352312588818499250e+00, /* 0x40144B49, 0xA574C1FE */ }; -#ifdef __STDC__ static const double ps2[5] = { -#else -static double ps2[5] = { -#endif 2.14364859363821409488e+01, /* 0x40356FBD, 0x8AD5ECDC */ 1.25290227168402751090e+02, /* 0x405F5293, 0x14F92CD5 */ 2.32276469057162813669e+02, /* 0x406D08D8, 0xD5A2DBD9 */ @@ -322,18 +260,9 @@ static double ps2[5] = { 8.36463893371618283368e+00, /* 0x4020BAB1, 0xF44E5192 */ }; -#ifdef __STDC__ static double pone(double x) -#else - static double pone(x) - double x; -#endif { -#ifdef __STDC__ const double *p,*q; -#else - double *p,*q; -#endif double z,r,s; int32_t ix; GET_HIGH_WORD(ix,x); @@ -359,11 +288,7 @@ static double ps2[5] = { * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) */ -#ifdef __STDC__ static const double qr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static double qr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.00000000000000000000e+00, /* 0x00000000, 0x00000000 */ -1.02539062499992714161e-01, /* 0xBFBA3FFF, 0xFFFFFDF3 */ -1.62717534544589987888e+01, /* 0xC0304591, 0xA26779F7 */ @@ -371,11 +296,7 @@ static double qr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -1.18498066702429587167e+04, /* 0xC0C724E7, 0x40F87415 */ -4.84385124285750353010e+04, /* 0xC0E7A6D0, 0x65D09C6A */ }; -#ifdef __STDC__ static const double qs8[6] = { -#else -static double qs8[6] = { -#endif 1.61395369700722909556e+02, /* 0x40642CA6, 0xDE5BCDE5 */ 7.82538599923348465381e+03, /* 0x40BE9162, 0xD0D88419 */ 1.33875336287249578163e+05, /* 0x4100579A, 0xB0B75E98 */ @@ -384,11 +305,7 @@ static double qs8[6] = { -2.94490264303834643215e+05, /* 0xC111F969, 0x0EA5AA18 */ }; -#ifdef __STDC__ static const double qr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static double qr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif -2.08979931141764104297e-11, /* 0xBDB6FA43, 0x1AA1A098 */ -1.02539050241375426231e-01, /* 0xBFBA3FFF, 0xCB597FEF */ -8.05644828123936029840e+00, /* 0xC0201CE6, 0xCA03AD4B */ @@ -396,11 +313,7 @@ static double qr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -1.37319376065508163265e+03, /* 0xC09574C6, 0x6931734F */ -2.61244440453215656817e+03, /* 0xC0A468E3, 0x88FDA79D */ }; -#ifdef __STDC__ static const double qs5[6] = { -#else -static double qs5[6] = { -#endif 8.12765501384335777857e+01, /* 0x405451B2, 0xFF5A11B2 */ 1.99179873460485964642e+03, /* 0x409F1F31, 0xE77BF839 */ 1.74684851924908907677e+04, /* 0x40D10F1F, 0x0D64CE29 */ @@ -409,11 +322,7 @@ static double qs5[6] = { -4.71918354795128470869e+03, /* 0xC0B26F2E, 0xFCFFA004 */ }; -#ifdef __STDC__ static const double qr3[6] = { -#else -static double qr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif -5.07831226461766561369e-09, /* 0xBE35CFA9, 0xD38FC84F */ -1.02537829820837089745e-01, /* 0xBFBA3FEB, 0x51AEED54 */ -4.61011581139473403113e+00, /* 0xC01270C2, 0x3302D9FF */ @@ -421,11 +330,7 @@ static double qr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -2.28244540737631695038e+02, /* 0xC06C87D3, 0x4718D55F */ -2.19210128478909325622e+02, /* 0xC06B66B9, 0x5F5C1BF6 */ }; -#ifdef __STDC__ static const double qs3[6] = { -#else -static double qs3[6] = { -#endif 4.76651550323729509273e+01, /* 0x4047D523, 0xCCD367E4 */ 6.73865112676699709482e+02, /* 0x40850EEB, 0xC031EE3E */ 3.38015286679526343505e+03, /* 0x40AA684E, 0x448E7C9A */ @@ -434,11 +339,7 @@ static double qs3[6] = { -1.35201191444307340817e+02, /* 0xC060E670, 0x290A311F */ }; -#ifdef __STDC__ static const double qr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static double qr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif -1.78381727510958865572e-07, /* 0xBE87F126, 0x44C626D2 */ -1.02517042607985553460e-01, /* 0xBFBA3E8E, 0x9148B010 */ -2.75220568278187460720e+00, /* 0xC0060484, 0x69BB4EDA */ @@ -446,11 +347,7 @@ static double qr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -4.23253133372830490089e+01, /* 0xC04529A3, 0xDE104AAA */ -2.13719211703704061733e+01, /* 0xC0355F36, 0x39CF6E52 */ }; -#ifdef __STDC__ static const double qs2[6] = { -#else -static double qs2[6] = { -#endif 2.95333629060523854548e+01, /* 0x403D888A, 0x78AE64FF */ 2.52981549982190529136e+02, /* 0x406F9F68, 0xDB821CBA */ 7.57502834868645436472e+02, /* 0x4087AC05, 0xCE49A0F7 */ @@ -459,18 +356,9 @@ static double qs2[6] = { -4.95949898822628210127e+00, /* 0xC013D686, 0xE71BE86B */ }; -#ifdef __STDC__ static double qone(double x) -#else - static double qone(x) - double x; -#endif { -#ifdef __STDC__ const double *p,*q; -#else - double *p,*q; -#endif double s,r,z; int32_t ix; GET_HIGH_WORD(ix,x); diff --git a/lib/msun/src/e_j1f.c b/lib/msun/src/e_j1f.c index 2d4b93aec31d..28b58a6006ae 100644 --- a/lib/msun/src/e_j1f.c +++ b/lib/msun/src/e_j1f.c @@ -20,17 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static float ponef(float), qonef(float); -#else -static float ponef(), qonef(); -#endif -#ifdef __STDC__ static const float -#else -static float -#endif huge = 1e30, one = 1.0, invsqrtpi= 5.6418961287e-01, /* 0x3f106ebb */ @@ -46,18 +38,9 @@ s03 = 1.1771846857e-06, /* 0x359dffc2 */ s04 = 5.0463624390e-09, /* 0x31ad6446 */ s05 = 1.2354227016e-11; /* 0x2d59567e */ -#ifdef __STDC__ static const float zero = 0.0; -#else -static float zero = 0.0; -#endif -#ifdef __STDC__ float __ieee754_j1f(float x) -#else - float __ieee754_j1f(x) - float x; -#endif { float z, s,c,ss,cc,r,u,v,y; int32_t hx,ix; @@ -98,22 +81,14 @@ static float zero = 0.0; return(x*(float)0.5+r/s); } -#ifdef __STDC__ static const float U0[5] = { -#else -static float U0[5] = { -#endif -1.9605709612e-01, /* 0xbe48c331 */ 5.0443872809e-02, /* 0x3d4e9e3c */ -1.9125689287e-03, /* 0xbafaaf2a */ 2.3525259166e-05, /* 0x37c5581c */ -9.1909917899e-08, /* 0xb3c56003 */ }; -#ifdef __STDC__ static const float V0[5] = { -#else -static float V0[5] = { -#endif 1.9916731864e-02, /* 0x3ca3286a */ 2.0255257550e-04, /* 0x3954644b */ 1.3560879779e-06, /* 0x35b602d4 */ @@ -121,12 +96,7 @@ static float V0[5] = { 1.6655924903e-11, /* 0x2d9281cf */ }; -#ifdef __STDC__ float __ieee754_y1f(float x) -#else - float __ieee754_y1f(x) - float x; -#endif { float z, s,c,ss,cc,u,v; int32_t hx,ix; @@ -184,11 +154,7 @@ static float V0[5] = { * | pone(x)-1-R/S | <= 2 ** ( -60.06) */ -#ifdef __STDC__ static const float pr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static float pr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.0000000000e+00, /* 0x00000000 */ 1.1718750000e-01, /* 0x3df00000 */ 1.3239480972e+01, /* 0x4153d4ea */ @@ -196,11 +162,7 @@ static float pr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ 3.8747453613e+03, /* 0x45722bed */ 7.9144794922e+03, /* 0x45f753d6 */ }; -#ifdef __STDC__ static const float ps8[5] = { -#else -static float ps8[5] = { -#endif 1.1420736694e+02, /* 0x42e46a2c */ 3.6509309082e+03, /* 0x45642ee5 */ 3.6956207031e+04, /* 0x47105c35 */ @@ -208,11 +170,7 @@ static float ps8[5] = { 3.0804271484e+04, /* 0x46f0a88b */ }; -#ifdef __STDC__ static const float pr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static float pr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif 1.3199052094e-11, /* 0x2d68333f */ 1.1718749255e-01, /* 0x3defffff */ 6.8027510643e+00, /* 0x40d9b023 */ @@ -220,11 +178,7 @@ static float pr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ 5.1763616943e+02, /* 0x440168b7 */ 5.2871520996e+02, /* 0x44042dc6 */ }; -#ifdef __STDC__ static const float ps5[5] = { -#else -static float ps5[5] = { -#endif 5.9280597687e+01, /* 0x426d1f55 */ 9.9140142822e+02, /* 0x4477d9b1 */ 5.3532670898e+03, /* 0x45a74a23 */ @@ -232,11 +186,7 @@ static float ps5[5] = { 1.5040468750e+03, /* 0x44bc0180 */ }; -#ifdef __STDC__ static const float pr3[6] = { -#else -static float pr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif 3.0250391081e-09, /* 0x314fe10d */ 1.1718686670e-01, /* 0x3defffab */ 3.9329774380e+00, /* 0x407bb5e7 */ @@ -244,11 +194,7 @@ static float pr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ 9.1055007935e+01, /* 0x42b61c2a */ 4.8559066772e+01, /* 0x42423c7c */ }; -#ifdef __STDC__ static const float ps3[5] = { -#else -static float ps3[5] = { -#endif 3.4791309357e+01, /* 0x420b2a4d */ 3.3676245117e+02, /* 0x43a86198 */ 1.0468714600e+03, /* 0x4482dbe3 */ @@ -256,11 +202,7 @@ static float ps3[5] = { 1.0378793335e+02, /* 0x42cf936c */ }; -#ifdef __STDC__ static const float pr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static float pr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif 1.0771083225e-07, /* 0x33e74ea8 */ 1.1717621982e-01, /* 0x3deffa16 */ 2.3685150146e+00, /* 0x401795c0 */ @@ -268,11 +210,7 @@ static float pr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ 1.7693971634e+01, /* 0x418d8d41 */ 5.0735230446e+00, /* 0x40a25a4d */ }; -#ifdef __STDC__ static const float ps2[5] = { -#else -static float ps2[5] = { -#endif 2.1436485291e+01, /* 0x41ab7dec */ 1.2529022980e+02, /* 0x42fa9499 */ 2.3227647400e+02, /* 0x436846c7 */ @@ -280,18 +218,9 @@ static float ps2[5] = { 8.3646392822e+00, /* 0x4105d590 */ }; -#ifdef __STDC__ static float ponef(float x) -#else - static float ponef(x) - float x; -#endif { -#ifdef __STDC__ const float *p,*q; -#else - float *p,*q; -#endif float z,r,s; int32_t ix; GET_FLOAT_WORD(ix,x); @@ -317,11 +246,7 @@ static float ps2[5] = { * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) */ -#ifdef __STDC__ static const float qr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#else -static float qr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -#endif 0.0000000000e+00, /* 0x00000000 */ -1.0253906250e-01, /* 0xbdd20000 */ -1.6271753311e+01, /* 0xc1822c8d */ @@ -329,11 +254,7 @@ static float qr8[6] = { /* for x in [inf, 8]=1/[0,0.125] */ -1.1849806641e+04, /* 0xc639273a */ -4.8438511719e+04, /* 0xc73d3683 */ }; -#ifdef __STDC__ static const float qs8[6] = { -#else -static float qs8[6] = { -#endif 1.6139537048e+02, /* 0x43216537 */ 7.8253862305e+03, /* 0x45f48b17 */ 1.3387534375e+05, /* 0x4802bcd6 */ @@ -342,11 +263,7 @@ static float qs8[6] = { -2.9449025000e+05, /* 0xc88fcb48 */ }; -#ifdef __STDC__ static const float qr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#else -static float qr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -#endif -2.0897993405e-11, /* 0xadb7d219 */ -1.0253904760e-01, /* 0xbdd1fffe */ -8.0564479828e+00, /* 0xc100e736 */ @@ -354,11 +271,7 @@ static float qr5[6] = { /* for x in [8,4.5454]=1/[0.125,0.22001] */ -1.3731937256e+03, /* 0xc4aba633 */ -2.6124443359e+03, /* 0xc523471c */ }; -#ifdef __STDC__ static const float qs5[6] = { -#else -static float qs5[6] = { -#endif 8.1276550293e+01, /* 0x42a28d98 */ 1.9917987061e+03, /* 0x44f8f98f */ 1.7468484375e+04, /* 0x468878f8 */ @@ -367,11 +280,7 @@ static float qs5[6] = { -4.7191835938e+03, /* 0xc5937978 */ }; -#ifdef __STDC__ static const float qr3[6] = { -#else -static float qr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -#endif -5.0783124372e-09, /* 0xb1ae7d4f */ -1.0253783315e-01, /* 0xbdd1ff5b */ -4.6101160049e+00, /* 0xc0938612 */ @@ -379,11 +288,7 @@ static float qr3[6] = {/* for x in [4.547,2.8571]=1/[0.2199,0.35001] */ -2.2824453735e+02, /* 0xc3643e9a */ -2.1921012878e+02, /* 0xc35b35cb */ }; -#ifdef __STDC__ static const float qs3[6] = { -#else -static float qs3[6] = { -#endif 4.7665153503e+01, /* 0x423ea91e */ 6.7386511230e+02, /* 0x4428775e */ 3.3801528320e+03, /* 0x45534272 */ @@ -392,11 +297,7 @@ static float qs3[6] = { -1.3520118713e+02, /* 0xc3073381 */ }; -#ifdef __STDC__ static const float qr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#else -static float qr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -#endif -1.7838172539e-07, /* 0xb43f8932 */ -1.0251704603e-01, /* 0xbdd1f475 */ -2.7522056103e+00, /* 0xc0302423 */ @@ -404,11 +305,7 @@ static float qr2[6] = {/* for x in [2.8570,2]=1/[0.3499,0.5] */ -4.2325313568e+01, /* 0xc2294d1f */ -2.1371921539e+01, /* 0xc1aaf9b2 */ }; -#ifdef __STDC__ static const float qs2[6] = { -#else -static float qs2[6] = { -#endif 2.9533363342e+01, /* 0x41ec4454 */ 2.5298155212e+02, /* 0x437cfb47 */ 7.5750280762e+02, /* 0x443d602e */ @@ -417,18 +314,9 @@ static float qs2[6] = { -4.9594988823e+00, /* 0xc09eb437 */ }; -#ifdef __STDC__ static float qonef(float x) -#else - static float qonef(x) - float x; -#endif { -#ifdef __STDC__ const float *p,*q; -#else - float *p,*q; -#endif float s,r,z; int32_t ix; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/e_jn.c b/lib/msun/src/e_jn.c index cfe26e81f583..eac6abde3994 100644 --- a/lib/msun/src/e_jn.c +++ b/lib/msun/src/e_jn.c @@ -43,27 +43,14 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif invsqrtpi= 5.64189583547756279280e-01, /* 0x3FE20DD7, 0x50429B6D */ two = 2.00000000000000000000e+00, /* 0x40000000, 0x00000000 */ one = 1.00000000000000000000e+00; /* 0x3FF00000, 0x00000000 */ -#ifdef __STDC__ static const double zero = 0.00000000000000000000e+00; -#else -static double zero = 0.00000000000000000000e+00; -#endif -#ifdef __STDC__ double __ieee754_jn(int n, double x) -#else - double __ieee754_jn(n,x) - int n; double x; -#endif { int32_t i,hx,ix,lx, sgn; double a, b, temp, di; @@ -218,12 +205,7 @@ static double zero = 0.00000000000000000000e+00; if(sgn==1) return -b; else return b; } -#ifdef __STDC__ double __ieee754_yn(int n, double x) -#else - double __ieee754_yn(n,x) - int n; double x; -#endif { int32_t i,hx,ix,lx; int32_t sign; diff --git a/lib/msun/src/e_jnf.c b/lib/msun/src/e_jnf.c index 03ed9308c88e..a374a6498f6a 100644 --- a/lib/msun/src/e_jnf.c +++ b/lib/msun/src/e_jnf.c @@ -20,27 +20,14 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif invsqrtpi= 5.6418961287e-01, /* 0x3f106ebb */ two = 2.0000000000e+00, /* 0x40000000 */ one = 1.0000000000e+00; /* 0x3F800000 */ -#ifdef __STDC__ static const float zero = 0.0000000000e+00; -#else -static float zero = 0.0000000000e+00; -#endif -#ifdef __STDC__ float __ieee754_jnf(int n, float x) -#else - float __ieee754_jnf(n,x) - int n; float x; -#endif { int32_t i,hx,ix, sgn; float a, b, temp, di; @@ -172,12 +159,7 @@ static float zero = 0.0000000000e+00; if(sgn==1) return -b; else return b; } -#ifdef __STDC__ float __ieee754_ynf(int n, float x) -#else - float __ieee754_ynf(n,x) - int n; float x; -#endif { int32_t i,hx,ix,ib; int32_t sign; diff --git a/lib/msun/src/e_lgamma.c b/lib/msun/src/e_lgamma.c index ca25a43c0078..72d5160a4316 100644 --- a/lib/msun/src/e_lgamma.c +++ b/lib/msun/src/e_lgamma.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; extern int signgam; -#ifdef __STDC__ double __ieee754_lgamma(double x) -#else - double __ieee754_lgamma(x) - double x; -#endif { return __ieee754_lgamma_r(x,&signgam); } diff --git a/lib/msun/src/e_lgamma_r.c b/lib/msun/src/e_lgamma_r.c index a66465589081..e6028e52cd3f 100644 --- a/lib/msun/src/e_lgamma_r.c +++ b/lib/msun/src/e_lgamma_r.c @@ -84,11 +84,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif two52= 4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */ half= 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ @@ -156,18 +152,9 @@ w4 = -5.95187557450339963135e-04, /* 0xBF4380CB, 0x8C0FE741 */ w5 = 8.36339918996282139126e-04, /* 0x3F4B67BA, 0x4CDAD5D1 */ w6 = -1.63092934096575273989e-03; /* 0xBF5AB89D, 0x0B9E43E4 */ -#ifdef __STDC__ static const double zero= 0.00000000000000000000e+00; -#else -static double zero= 0.00000000000000000000e+00; -#endif -#ifdef __STDC__ static double sin_pi(double x) -#else - static double sin_pi(x) - double x; -#endif { double y,z; int n,ix; @@ -212,12 +199,7 @@ static double zero= 0.00000000000000000000e+00; } -#ifdef __STDC__ double __ieee754_lgamma_r(double x, int *signgamp) -#else - double __ieee754_lgamma_r(x,signgamp) - double x; int *signgamp; -#endif { double t,y,z,nadj,p,p1,p2,p3,q,r,w; int i,hx,lx,ix; diff --git a/lib/msun/src/e_lgammaf.c b/lib/msun/src/e_lgammaf.c index dde3f95ba2f1..b8ab6560071e 100644 --- a/lib/msun/src/e_lgammaf.c +++ b/lib/msun/src/e_lgammaf.c @@ -28,12 +28,7 @@ static char rcsid[] = "$FreeBSD$"; extern int signgam; -#ifdef __STDC__ float __ieee754_lgammaf(float x) -#else - float __ieee754_lgammaf(x) - float x; -#endif { return __ieee754_lgammaf_r(x,&signgam); } diff --git a/lib/msun/src/e_lgammaf_r.c b/lib/msun/src/e_lgammaf_r.c index 0e578880568f..9ea94c152af7 100644 --- a/lib/msun/src/e_lgammaf_r.c +++ b/lib/msun/src/e_lgammaf_r.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif two23= 8.3886080000e+06, /* 0x4b000000 */ half= 5.0000000000e-01, /* 0x3f000000 */ one = 1.0000000000e+00, /* 0x3f800000 */ @@ -92,18 +88,9 @@ w4 = -5.9518753551e-04, /* 0xba1c065c */ w5 = 8.3633989561e-04, /* 0x3a5b3dd2 */ w6 = -1.6309292987e-03; /* 0xbad5c4e8 */ -#ifdef __STDC__ static const float zero= 0.0000000000e+00; -#else -static float zero= 0.0000000000e+00; -#endif -#ifdef __STDC__ static float sin_pif(float x) -#else - static float sin_pif(x) - float x; -#endif { float y,z; int n,ix; @@ -148,12 +135,7 @@ static float zero= 0.0000000000e+00; } -#ifdef __STDC__ float __ieee754_lgammaf_r(float x, int *signgamp) -#else - float __ieee754_lgammaf_r(x,signgamp) - float x; int *signgamp; -#endif { float t,y,z,nadj,p,p1,p2,p3,q,r,w; int i,hx,ix; diff --git a/lib/msun/src/e_log.c b/lib/msun/src/e_log.c index 6ebeb910d020..b245feba5239 100644 --- a/lib/msun/src/e_log.c +++ b/lib/msun/src/e_log.c @@ -68,11 +68,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif ln2_hi = 6.93147180369123816490e-01, /* 3fe62e42 fee00000 */ ln2_lo = 1.90821492927058770002e-10, /* 3dea39ef 35793c76 */ two54 = 1.80143985094819840000e+16, /* 43500000 00000000 */ @@ -84,18 +80,9 @@ Lg5 = 1.818357216161805012e-01, /* 3FC74664 96CB03DE */ Lg6 = 1.531383769920937332e-01, /* 3FC39A09 D078C69F */ Lg7 = 1.479819860511658591e-01; /* 3FC2F112 DF3E5244 */ -#ifdef __STDC__ static const double zero = 0.0; -#else -static double zero = 0.0; -#endif -#ifdef __STDC__ double __generic___ieee754_log(double x) -#else - double __generic___ieee754_log(x) - double x; -#endif { double hfsq,f,s,z,R,w,t1,t2,dk; int32_t k,hx,i,j; diff --git a/lib/msun/src/e_log10.c b/lib/msun/src/e_log10.c index 5c02df8c33fb..7af88297d524 100644 --- a/lib/msun/src/e_log10.c +++ b/lib/msun/src/e_log10.c @@ -50,28 +50,15 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */ ivln10 = 4.34294481903251816668e-01, /* 0x3FDBCB7B, 0x1526E50E */ log10_2hi = 3.01029995663611771306e-01, /* 0x3FD34413, 0x509F6000 */ log10_2lo = 3.69423907715893078616e-13; /* 0x3D59FEF3, 0x11F12B36 */ -#ifdef __STDC__ static const double zero = 0.0; -#else -static double zero = 0.0; -#endif -#ifdef __STDC__ double __generic___ieee754_log10(double x) -#else - double __generic___ieee754_log10(x) - double x; -#endif { double y,z; int32_t i,k,hx; diff --git a/lib/msun/src/e_log10f.c b/lib/msun/src/e_log10f.c index 8b11d3817cf6..5ed8edc7c72d 100644 --- a/lib/msun/src/e_log10f.c +++ b/lib/msun/src/e_log10f.c @@ -20,28 +20,15 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif two25 = 3.3554432000e+07, /* 0x4c000000 */ ivln10 = 4.3429449201e-01, /* 0x3ede5bd9 */ log10_2hi = 3.0102920532e-01, /* 0x3e9a2080 */ log10_2lo = 7.9034151668e-07; /* 0x355427db */ -#ifdef __STDC__ static const float zero = 0.0; -#else -static float zero = 0.0; -#endif -#ifdef __STDC__ float __ieee754_log10f(float x) -#else - float __ieee754_log10f(x) - float x; -#endif { float y,z; int32_t i,k,hx; diff --git a/lib/msun/src/e_logf.c b/lib/msun/src/e_logf.c index 4a286a6a97e5..60c20aa42dc0 100644 --- a/lib/msun/src/e_logf.c +++ b/lib/msun/src/e_logf.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif ln2_hi = 6.9313812256e-01, /* 0x3f317180 */ ln2_lo = 9.0580006145e-06, /* 0x3717f7d1 */ two25 = 3.355443200e+07, /* 0x4c000000 */ @@ -36,18 +32,9 @@ Lg5 = 1.8183572590e-01, /* 3E3A3325 */ Lg6 = 1.5313838422e-01, /* 3E1CD04F */ Lg7 = 1.4798198640e-01; /* 3E178897 */ -#ifdef __STDC__ static const float zero = 0.0; -#else -static float zero = 0.0; -#endif -#ifdef __STDC__ float __ieee754_logf(float x) -#else - float __ieee754_logf(x) - float x; -#endif { float hfsq,f,s,z,R,w,t1,t2,dk; int32_t k,ix,i,j; diff --git a/lib/msun/src/e_pow.c b/lib/msun/src/e_pow.c index 18ba4fa1ec35..8d57b14a289e 100644 --- a/lib/msun/src/e_pow.c +++ b/lib/msun/src/e_pow.c @@ -62,11 +62,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif bp[] = {1.0, 1.5,}, dp_h[] = { 0.0, 5.84962487220764160156e-01,}, /* 0x3FE2B803, 0x40000000 */ dp_l[] = { 0.0, 1.35003920212974897128e-08,}, /* 0x3E4CFDEB, 0x43CFD006 */ @@ -99,12 +95,7 @@ ivln2 = 1.44269504088896338700e+00, /* 0x3FF71547, 0x652B82FE =1/ln2 */ ivln2_h = 1.44269502162933349609e+00, /* 0x3FF71547, 0x60000000 =24b 1/ln2*/ ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/ -#ifdef __STDC__ double __ieee754_pow(double x, double y) -#else - double __ieee754_pow(x,y) - double x, y; -#endif { double z,ax,z_h,z_l,p_h,p_l; double y1,t1,t2,r,s,t,u,v,w; diff --git a/lib/msun/src/e_powf.c b/lib/msun/src/e_powf.c index 34f5d4718e57..806bcb582a28 100644 --- a/lib/msun/src/e_powf.c +++ b/lib/msun/src/e_powf.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif bp[] = {1.0, 1.5,}, dp_h[] = { 0.0, 5.84960938e-01,}, /* 0x3f15c000 */ dp_l[] = { 0.0, 1.56322085e-06,}, /* 0x35d1cfdc */ @@ -57,12 +53,7 @@ ivln2 = 1.4426950216e+00, /* 0x3fb8aa3b =1/ln2 */ ivln2_h = 1.4426879883e+00, /* 0x3fb8aa00 =16b 1/ln2*/ ivln2_l = 7.0526075433e-06; /* 0x36eca570 =1/ln2 tail*/ -#ifdef __STDC__ float __ieee754_powf(float x, float y) -#else - float __ieee754_powf(x,y) - float x, y; -#endif { float z,ax,z_h,z_l,p_h,p_l; float y1,t1,t2,r,s,t,u,v,w; diff --git a/lib/msun/src/e_rem_pio2.c b/lib/msun/src/e_rem_pio2.c index 0d182de316ed..668c1ea4f55a 100644 --- a/lib/msun/src/e_rem_pio2.c +++ b/lib/msun/src/e_rem_pio2.c @@ -26,11 +26,7 @@ static char rcsid[] = "$FreeBSD$"; /* * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi */ -#ifdef __STDC__ static const int32_t two_over_pi[] = { -#else -static int32_t two_over_pi[] = { -#endif 0xA2F983, 0x6E4E44, 0x1529FC, 0x2757D1, 0xF534DD, 0xC0DB62, 0x95993C, 0x439041, 0xFE5163, 0xABDEBB, 0xC561B7, 0x246E3A, 0x424DD2, 0xE00649, 0x2EEA09, 0xD1921C, 0xFE1DEB, 0x1CB129, @@ -44,11 +40,7 @@ static int32_t two_over_pi[] = { 0x4D7327, 0x310606, 0x1556CA, 0x73A8C9, 0x60E27B, 0xC08C6B, }; -#ifdef __STDC__ static const int32_t npio2_hw[] = { -#else -static int32_t npio2_hw[] = { -#endif 0x3FF921FB, 0x400921FB, 0x4012D97C, 0x401921FB, 0x401F6A7A, 0x4022D97C, 0x4025FDBB, 0x402921FB, 0x402C463A, 0x402F6A7A, 0x4031475C, 0x4032D97C, 0x40346B9C, 0x4035FDBB, 0x40378FDB, 0x403921FB, 0x403AB41B, 0x403C463A, @@ -67,11 +59,7 @@ static int32_t npio2_hw[] = { * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) */ -#ifdef __STDC__ static const double -#else -static double -#endif zero = 0.00000000000000000000e+00, /* 0x00000000, 0x00000000 */ half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ two24 = 1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */ @@ -83,12 +71,7 @@ pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */ pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */ pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */ -#ifdef __STDC__ int32_t __ieee754_rem_pio2(double x, double *y) -#else - int32_t __ieee754_rem_pio2(x,y) - double x,y[]; -#endif { double z,w,t,r,fn; double tx[3]; diff --git a/lib/msun/src/e_rem_pio2f.c b/lib/msun/src/e_rem_pio2f.c index cf9cecc36c86..eef45b070ee6 100644 --- a/lib/msun/src/e_rem_pio2f.c +++ b/lib/msun/src/e_rem_pio2f.c @@ -29,11 +29,7 @@ static char rcsid[] = "$FreeBSD$"; /* * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi */ -#ifdef __STDC__ static const int32_t two_over_pi[] = { -#else -static int32_t two_over_pi[] = { -#endif 0xA2, 0xF9, 0x83, 0x6E, 0x4E, 0x44, 0x15, 0x29, 0xFC, 0x27, 0x57, 0xD1, 0xF5, 0x34, 0xDD, 0xC0, 0xDB, 0x62, 0x95, 0x99, 0x3C, 0x43, 0x90, 0x41, 0xFE, 0x51, 0x63, @@ -60,11 +56,7 @@ static int32_t two_over_pi[] = { /* This array is like the one in e_rem_pio2.c, but the numbers are single precision and the last 8 bits are forced to 0. */ -#ifdef __STDC__ static const int32_t npio2_hw[] = { -#else -static int32_t npio2_hw[] = { -#endif 0x3fc90f00, 0x40490f00, 0x4096cb00, 0x40c90f00, 0x40fb5300, 0x4116cb00, 0x412fed00, 0x41490f00, 0x41623100, 0x417b5300, 0x418a3a00, 0x4196cb00, 0x41a35c00, 0x41afed00, 0x41bc7e00, 0x41c90f00, 0x41d5a000, 0x41e23100, @@ -83,11 +75,7 @@ static int32_t npio2_hw[] = { * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) */ -#ifdef __STDC__ static const float -#else -static float -#endif zero = 0.0000000000e+00, /* 0x00000000 */ half = 5.0000000000e-01, /* 0x3f000000 */ two8 = 2.5600000000e+02, /* 0x43800000 */ @@ -99,12 +87,7 @@ pio2_2t = 6.0770999344e-11, /* 0x2e85a308 */ pio2_3 = 6.0770943833e-11, /* 0x2e85a300 */ pio2_3t = 6.1232342629e-17; /* 0x248d3132 */ -#ifdef __STDC__ int32_t __ieee754_rem_pio2f(float x, float *y) -#else - int32_t __ieee754_rem_pio2f(x,y) - float x,y[]; -#endif { float z,w,t,r,fn; float tx[3]; diff --git a/lib/msun/src/e_remainder.c b/lib/msun/src/e_remainder.c index c41d392adc58..6f3507ff9a2c 100644 --- a/lib/msun/src/e_remainder.c +++ b/lib/msun/src/e_remainder.c @@ -26,19 +26,10 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double zero = 0.0; -#else -static double zero = 0.0; -#endif -#ifdef __STDC__ double __generic___ieee754_remainder(double x, double p) -#else - double __generic___ieee754_remainder(x,p) - double x,p; -#endif { int32_t hx,hp; u_int32_t sx,lx,lp; diff --git a/lib/msun/src/e_remainderf.c b/lib/msun/src/e_remainderf.c index d5f670e8a022..0cfc7d8a2a0b 100644 --- a/lib/msun/src/e_remainderf.c +++ b/lib/msun/src/e_remainderf.c @@ -20,19 +20,10 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float zero = 0.0; -#else -static float zero = 0.0; -#endif -#ifdef __STDC__ float __ieee754_remainderf(float x, float p) -#else - float __ieee754_remainderf(x,p) - float x,p; -#endif { int32_t hx,hp; u_int32_t sx; diff --git a/lib/msun/src/e_scalb.c b/lib/msun/src/e_scalb.c index 14f167ee0d54..dfe6a4d2db95 100644 --- a/lib/msun/src/e_scalb.c +++ b/lib/msun/src/e_scalb.c @@ -24,19 +24,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" #ifdef _SCALB_INT -#ifdef __STDC__ double __generic___ieee754_scalb(double x, int fn) #else - double __generic___ieee754_scalb(x,fn) - double x; int fn; -#endif -#else -#ifdef __STDC__ double __generic___ieee754_scalb(double x, double fn) -#else - double __generic___ieee754_scalb(x,fn) - double x, fn; -#endif #endif { #ifdef _SCALB_INT diff --git a/lib/msun/src/e_scalbf.c b/lib/msun/src/e_scalbf.c index c6785703fe05..0d3644a8a1d1 100644 --- a/lib/msun/src/e_scalbf.c +++ b/lib/msun/src/e_scalbf.c @@ -21,19 +21,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" #ifdef _SCALB_INT -#ifdef __STDC__ float __ieee754_scalbf(float x, int fn) #else - float __ieee754_scalbf(x,fn) - float x; int fn; -#endif -#else -#ifdef __STDC__ float __ieee754_scalbf(float x, float fn) -#else - float __ieee754_scalbf(x,fn) - float x, fn; -#endif #endif { #ifdef _SCALB_INT diff --git a/lib/msun/src/e_sinh.c b/lib/msun/src/e_sinh.c index 2ac789118699..94cf567c3c8b 100644 --- a/lib/msun/src/e_sinh.c +++ b/lib/msun/src/e_sinh.c @@ -35,18 +35,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double one = 1.0, shuge = 1.0e307; -#else -static double one = 1.0, shuge = 1.0e307; -#endif -#ifdef __STDC__ double __ieee754_sinh(double x) -#else - double __ieee754_sinh(x) - double x; -#endif { double t,w,h; int32_t ix,jx; diff --git a/lib/msun/src/e_sinhf.c b/lib/msun/src/e_sinhf.c index fc417dee769b..87b90eb97a8f 100644 --- a/lib/msun/src/e_sinhf.c +++ b/lib/msun/src/e_sinhf.c @@ -20,18 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float one = 1.0, shuge = 1.0e37; -#else -static float one = 1.0, shuge = 1.0e37; -#endif -#ifdef __STDC__ float __ieee754_sinhf(float x) -#else - float __ieee754_sinhf(x) - float x; -#endif { float t,w,h; int32_t ix,jx; diff --git a/lib/msun/src/e_sqrt.c b/lib/msun/src/e_sqrt.c index bea3b200abbd..19fdfdda45ef 100644 --- a/lib/msun/src/e_sqrt.c +++ b/lib/msun/src/e_sqrt.c @@ -87,18 +87,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double one = 1.0, tiny=1.0e-300; -#else -static double one = 1.0, tiny=1.0e-300; -#endif -#ifdef __STDC__ double __generic___ieee754_sqrt(double x) -#else - double __generic___ieee754_sqrt(x) - double x; -#endif { double z; int32_t sign = (int)0x80000000; diff --git a/lib/msun/src/e_sqrtf.c b/lib/msun/src/e_sqrtf.c index b7e7d6105004..c691469d58b2 100644 --- a/lib/msun/src/e_sqrtf.c +++ b/lib/msun/src/e_sqrtf.c @@ -20,18 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float one = 1.0, tiny=1.0e-30; -#else -static float one = 1.0, tiny=1.0e-30; -#endif -#ifdef __STDC__ float __ieee754_sqrtf(float x) -#else - float __ieee754_sqrtf(x) - float x; -#endif { float z; int32_t sign = (int)0x80000000; diff --git a/lib/msun/src/k_cos.c b/lib/msun/src/k_cos.c index 1694c3f489b8..f01434875d12 100644 --- a/lib/msun/src/k_cos.c +++ b/lib/msun/src/k_cos.c @@ -52,11 +52,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ C1 = 4.16666666666666019037e-02, /* 0x3FA55555, 0x5555554C */ C2 = -1.38888888888741095749e-03, /* 0xBF56C16C, 0x16C15177 */ @@ -65,12 +61,7 @@ C4 = -2.75573143513906633035e-07, /* 0xBE927E4F, 0x809C52AD */ C5 = 2.08757232129817482790e-09, /* 0x3E21EE9E, 0xBDB4B1C4 */ C6 = -1.13596475577881948265e-11; /* 0xBDA8FAE9, 0xBE8838D4 */ -#ifdef __STDC__ double __kernel_cos(double x, double y) -#else - double __kernel_cos(x, y) - double x,y; -#endif { double a,hz,z,r,qx; int32_t ix; diff --git a/lib/msun/src/k_cosf.c b/lib/msun/src/k_cosf.c index fb49a6b9994f..66d145f7bbb4 100644 --- a/lib/msun/src/k_cosf.c +++ b/lib/msun/src/k_cosf.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif one = 1.0000000000e+00, /* 0x3f800000 */ C1 = 4.1666667908e-02, /* 0x3d2aaaab */ C2 = -1.3888889225e-03, /* 0xbab60b61 */ @@ -33,12 +29,7 @@ C4 = -2.7557314297e-07, /* 0xb493f27c */ C5 = 2.0875723372e-09, /* 0x310f74f6 */ C6 = -1.1359647598e-11; /* 0xad47d74e */ -#ifdef __STDC__ float __kernel_cosf(float x, float y) -#else - float __kernel_cosf(x, y) - float x,y; -#endif { float a,hz,z,r,qx; int32_t ix; diff --git a/lib/msun/src/k_rem_pio2.c b/lib/msun/src/k_rem_pio2.c index 8971a84e5c75..3613c3851d95 100644 --- a/lib/msun/src/k_rem_pio2.c +++ b/lib/msun/src/k_rem_pio2.c @@ -133,17 +133,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const int init_jk[] = {2,3,4,6}; /* initial value for jk */ -#else -static int init_jk[] = {2,3,4,6}; -#endif -#ifdef __STDC__ static const double PIo2[] = { -#else -static double PIo2[] = { -#endif 1.57079625129699707031e+00, /* 0x3FF921FB, 0x40000000 */ 7.54978941586159635335e-08, /* 0x3E74442D, 0x00000000 */ 5.39030252995776476554e-15, /* 0x3CF84698, 0x80000000 */ @@ -154,22 +146,13 @@ static double PIo2[] = { 2.16741683877804819444e-51, /* 0x3569F31D, 0x00000000 */ }; -#ifdef __STDC__ static const double -#else -static double -#endif zero = 0.0, one = 1.0, two24 = 1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */ twon24 = 5.96046447753906250000e-08; /* 0x3E700000, 0x00000000 */ -#ifdef __STDC__ int __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec, const int32_t *ipio2) -#else - int __kernel_rem_pio2(x,y,e0,nx,prec,ipio2) - double x[], y[]; int e0,nx,prec; int32_t ipio2[]; -#endif { int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; double z,fw,f[20],fq[20],q[20]; diff --git a/lib/msun/src/k_rem_pio2f.c b/lib/msun/src/k_rem_pio2f.c index 00144974a05e..655d2a83c1e6 100644 --- a/lib/msun/src/k_rem_pio2f.c +++ b/lib/msun/src/k_rem_pio2f.c @@ -23,17 +23,9 @@ static char rcsid[] = "$FreeBSD$"; /* In the float version, the input parameter x contains 8 bit integers, not 24 bit integers. 113 bit precision is not supported. */ -#ifdef __STDC__ static const int init_jk[] = {4,7,9}; /* initial value for jk */ -#else -static int init_jk[] = {4,7,9}; -#endif -#ifdef __STDC__ static const float PIo2[] = { -#else -static float PIo2[] = { -#endif 1.5703125000e+00, /* 0x3fc90000 */ 4.5776367188e-04, /* 0x39f00000 */ 2.5987625122e-05, /* 0x37da0000 */ @@ -47,22 +39,13 @@ static float PIo2[] = { 6.3331015649e-25, /* 0x17440000 */ }; -#ifdef __STDC__ static const float -#else -static float -#endif zero = 0.0, one = 1.0, two8 = 2.5600000000e+02, /* 0x43800000 */ twon8 = 3.9062500000e-03; /* 0x3b800000 */ -#ifdef __STDC__ int __kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const int32_t *ipio2) -#else - int __kernel_rem_pio2f(x,y,e0,nx,prec,ipio2) - float x[], y[]; int e0,nx,prec; int32_t ipio2[]; -#endif { int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; float z,fw,f[20],fq[20],q[20]; diff --git a/lib/msun/src/k_sin.c b/lib/msun/src/k_sin.c index df2dc26b751c..a64153e16cfb 100644 --- a/lib/msun/src/k_sin.c +++ b/lib/msun/src/k_sin.c @@ -45,11 +45,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ S1 = -1.66666666666666324348e-01, /* 0xBFC55555, 0x55555549 */ S2 = 8.33333333332248946124e-03, /* 0x3F811111, 0x1110F8A6 */ @@ -58,12 +54,7 @@ S4 = 2.75573137070700676789e-06, /* 0x3EC71DE3, 0x57B1FE7D */ S5 = -2.50507602534068634195e-08, /* 0xBE5AE5E6, 0x8A2B9CEB */ S6 = 1.58969099521155010221e-10; /* 0x3DE5D93A, 0x5ACFD57C */ -#ifdef __STDC__ double __kernel_sin(double x, double y, int iy) -#else - double __kernel_sin(x, y, iy) - double x,y; int iy; /* iy=0 if y is zero */ -#endif { double z,r,v; int32_t ix; diff --git a/lib/msun/src/k_sinf.c b/lib/msun/src/k_sinf.c index ab81d4d265be..886f828f9afc 100644 --- a/lib/msun/src/k_sinf.c +++ b/lib/msun/src/k_sinf.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif half = 5.0000000000e-01,/* 0x3f000000 */ S1 = -1.6666667163e-01, /* 0xbe2aaaab */ S2 = 8.3333337680e-03, /* 0x3c088889 */ @@ -33,12 +29,7 @@ S4 = 2.7557314297e-06, /* 0x3638ef1b */ S5 = -2.5050759689e-08, /* 0xb2d72f34 */ S6 = 1.5896910177e-10; /* 0x2f2ec9d3 */ -#ifdef __STDC__ float __kernel_sinf(float x, float y, int iy) -#else - float __kernel_sinf(x, y, iy) - float x,y; int iy; /* iy=0 if y is zero */ -#endif { float z,r,v; int32_t ix; diff --git a/lib/msun/src/k_standard.c b/lib/msun/src/k_standard.c index 2b62052d8220..10135eb3a9e5 100644 --- a/lib/msun/src/k_standard.c +++ b/lib/msun/src/k_standard.c @@ -27,11 +27,7 @@ static char rcsid[] = "$FreeBSD$"; #undef fflush #endif /* !defined(_USE_WRITE) */ -#ifdef __STDC__ static const double zero = 0.0; /* used as const */ -#else -static double zero = 0.0; /* used as const */ -#endif /* * Standard conformance (non-IEEE) on exception cases. @@ -81,12 +77,7 @@ static double zero = 0.0; /* used as const */ */ -#ifdef __STDC__ double __kernel_standard(double x, double y, int type) -#else - double __kernel_standard(x,y,type) - double x,y; int type; -#endif { struct exception exc; #ifndef HUGE_VAL /* this is the only routine that uses HUGE_VAL */ diff --git a/lib/msun/src/k_tan.c b/lib/msun/src/k_tan.c index d03c3874cd5b..df0c94e4c8cc 100644 --- a/lib/msun/src/k_tan.c +++ b/lib/msun/src/k_tan.c @@ -50,11 +50,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ pio4 = 7.85398163397448278999e-01, /* 0x3FE921FB, 0x54442D18 */ pio4lo= 3.06161699786838301793e-17, /* 0x3C81A626, 0x33145C07 */ @@ -74,12 +70,7 @@ T[] = { 2.59073051863633712884e-05, /* 0x3EFB2A70, 0x74BF7AD4 */ }; -#ifdef __STDC__ double __kernel_tan(double x, double y, int iy) -#else - double __kernel_tan(x, y, iy) - double x,y; int iy; -#endif { double z,r,v,w,s; int32_t ix,hx; diff --git a/lib/msun/src/k_tanf.c b/lib/msun/src/k_tanf.c index bb03b9fb4962..772a66390176 100644 --- a/lib/msun/src/k_tanf.c +++ b/lib/msun/src/k_tanf.c @@ -19,11 +19,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif one = 1.0000000000e+00, /* 0x3f800000 */ pio4 = 7.8539812565e-01, /* 0x3f490fda */ pio4lo= 3.7748947079e-08, /* 0x33222168 */ @@ -43,12 +39,7 @@ T[] = { 2.5907305826e-05, /* 0x37d95384 */ }; -#ifdef __STDC__ float __kernel_tanf(float x, float y, int iy) -#else - float __kernel_tanf(x, y, iy) - float x,y; int iy; -#endif { float z,r,v,w,s; int32_t ix,hx; diff --git a/lib/msun/src/s_asinh.c b/lib/msun/src/s_asinh.c index c1dbde88d992..8f9632dc77ac 100644 --- a/lib/msun/src/s_asinh.c +++ b/lib/msun/src/s_asinh.c @@ -28,21 +28,12 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ ln2 = 6.93147180559945286227e-01, /* 0x3FE62E42, 0xFEFA39EF */ huge= 1.00000000000000000000e+300; -#ifdef __STDC__ double asinh(double x) -#else - double asinh(x) - double x; -#endif { double t,w; int32_t hx,ix; diff --git a/lib/msun/src/s_asinhf.c b/lib/msun/src/s_asinhf.c index 9910b2a43d63..9def250ef306 100644 --- a/lib/msun/src/s_asinhf.c +++ b/lib/msun/src/s_asinhf.c @@ -20,21 +20,12 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif one = 1.0000000000e+00, /* 0x3F800000 */ ln2 = 6.9314718246e-01, /* 0x3f317218 */ huge= 1.0000000000e+30; -#ifdef __STDC__ float asinhf(float x) -#else - float asinhf(x) - float x; -#endif { float t,w; int32_t hx,ix; diff --git a/lib/msun/src/s_atan.c b/lib/msun/src/s_atan.c index 029fbc29b6fa..07670a540283 100644 --- a/lib/msun/src/s_atan.c +++ b/lib/msun/src/s_atan.c @@ -37,33 +37,21 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double atanhi[] = { -#else -static double atanhi[] = { -#endif 4.63647609000806093515e-01, /* atan(0.5)hi 0x3FDDAC67, 0x0561BB4F */ 7.85398163397448278999e-01, /* atan(1.0)hi 0x3FE921FB, 0x54442D18 */ 9.82793723247329054082e-01, /* atan(1.5)hi 0x3FEF730B, 0xD281F69B */ 1.57079632679489655800e+00, /* atan(inf)hi 0x3FF921FB, 0x54442D18 */ }; -#ifdef __STDC__ static const double atanlo[] = { -#else -static double atanlo[] = { -#endif 2.26987774529616870924e-17, /* atan(0.5)lo 0x3C7A2B7F, 0x222F65E2 */ 3.06161699786838301793e-17, /* atan(1.0)lo 0x3C81A626, 0x33145C07 */ 1.39033110312309984516e-17, /* atan(1.5)lo 0x3C700788, 0x7AF0CBBD */ 6.12323399573676603587e-17, /* atan(inf)lo 0x3C91A626, 0x33145C07 */ }; -#ifdef __STDC__ static const double aT[] = { -#else -static double aT[] = { -#endif 3.33333333333329318027e-01, /* 0x3FD55555, 0x5555550D */ -1.99999999998764832476e-01, /* 0xBFC99999, 0x9998EBC4 */ 1.42857142725034663711e-01, /* 0x3FC24924, 0x920083FF */ @@ -77,20 +65,11 @@ static double aT[] = { 1.62858201153657823623e-02, /* 0x3F90AD3A, 0xE322DA11 */ }; -#ifdef __STDC__ static const double -#else - static double -#endif one = 1.0, huge = 1.0e300; -#ifdef __STDC__ double __generic_atan(double x) -#else - double __generic_atan(x) - double x; -#endif { double w,s1,s2,z; int32_t ix,hx,id; diff --git a/lib/msun/src/s_atanf.c b/lib/msun/src/s_atanf.c index ff702f6e66b0..5efd2aff958d 100644 --- a/lib/msun/src/s_atanf.c +++ b/lib/msun/src/s_atanf.c @@ -20,33 +20,21 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float atanhi[] = { -#else -static float atanhi[] = { -#endif 4.6364760399e-01, /* atan(0.5)hi 0x3eed6338 */ 7.8539812565e-01, /* atan(1.0)hi 0x3f490fda */ 9.8279368877e-01, /* atan(1.5)hi 0x3f7b985e */ 1.5707962513e+00, /* atan(inf)hi 0x3fc90fda */ }; -#ifdef __STDC__ static const float atanlo[] = { -#else -static float atanlo[] = { -#endif 5.0121582440e-09, /* atan(0.5)lo 0x31ac3769 */ 3.7748947079e-08, /* atan(1.0)lo 0x33222168 */ 3.4473217170e-08, /* atan(1.5)lo 0x33140fb4 */ 7.5497894159e-08, /* atan(inf)lo 0x33a22168 */ }; -#ifdef __STDC__ static const float aT[] = { -#else -static float aT[] = { -#endif 3.3333334327e-01, /* 0x3eaaaaaa */ -2.0000000298e-01, /* 0xbe4ccccd */ 1.4285714924e-01, /* 0x3e124925 */ @@ -60,20 +48,11 @@ static float aT[] = { 1.6285819933e-02, /* 0x3c8569d7 */ }; -#ifdef __STDC__ static const float -#else - static float -#endif one = 1.0, huge = 1.0e30; -#ifdef __STDC__ float atanf(float x) -#else - float atanf(x) - float x; -#endif { float w,s1,s2,z; int32_t ix,hx,id; diff --git a/lib/msun/src/s_cbrt.c b/lib/msun/src/s_cbrt.c index 93edad76a033..485a6d8f4b9d 100644 --- a/lib/msun/src/s_cbrt.c +++ b/lib/msun/src/s_cbrt.c @@ -20,31 +20,18 @@ static char rcsid[] = "$FreeBSD$"; /* cbrt(x) * Return cube root of x */ -#ifdef __STDC__ static const u_int32_t -#else -static u_int32_t -#endif B1 = 715094163, /* B1 = (682-0.03306235651)*2**20 */ B2 = 696219795; /* B2 = (664-0.03306235651)*2**20 */ -#ifdef __STDC__ static const double -#else -static double -#endif C = 5.42857142857142815906e-01, /* 19/35 = 0x3FE15F15, 0xF15F15F1 */ D = -7.05306122448979611050e-01, /* -864/1225 = 0xBFE691DE, 0x2532C834 */ E = 1.41428571428571436819e+00, /* 99/70 = 0x3FF6A0EA, 0x0EA0EA0F */ F = 1.60714285714285720630e+00, /* 45/28 = 0x3FF9B6DB, 0x6DB6DB6E */ G = 3.57142857142857150787e-01; /* 5/14 = 0x3FD6DB6D, 0xB6DB6DB7 */ -#ifdef __STDC__ double cbrt(double x) -#else - double cbrt(x) - double x; -#endif { int32_t hx; double r,s,t=0.0,w; diff --git a/lib/msun/src/s_cbrtf.c b/lib/msun/src/s_cbrtf.c index c1c2fa1a370c..6b13069b2f3b 100644 --- a/lib/msun/src/s_cbrtf.c +++ b/lib/msun/src/s_cbrtf.c @@ -23,31 +23,18 @@ static char rcsid[] = "$FreeBSD$"; /* cbrtf(x) * Return cube root of x */ -#ifdef __STDC__ static const unsigned -#else -static unsigned -#endif B1 = 709958130, /* B1 = (84+2/3-0.03306235651)*2**23 */ B2 = 642849266; /* B2 = (76+2/3-0.03306235651)*2**23 */ -#ifdef __STDC__ static const float -#else -static float -#endif C = 5.4285717010e-01, /* 19/35 = 0x3f0af8b0 */ D = -7.0530611277e-01, /* -864/1225 = 0xbf348ef1 */ E = 1.4142856598e+00, /* 99/70 = 0x3fb50750 */ F = 1.6071428061e+00, /* 45/28 = 0x3fcdb6db */ G = 3.5714286566e-01; /* 5/14 = 0x3eb6db6e */ -#ifdef __STDC__ float cbrtf(float x) -#else - float cbrtf(x) - float x; -#endif { float r,s,t; int32_t hx; diff --git a/lib/msun/src/s_ceil.c b/lib/msun/src/s_ceil.c index 2c59c783c88d..79ec273cc710 100644 --- a/lib/msun/src/s_ceil.c +++ b/lib/msun/src/s_ceil.c @@ -26,18 +26,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double huge = 1.0e300; -#else -static double huge = 1.0e300; -#endif -#ifdef __STDC__ double __generic_ceil(double x) -#else - double __generic_ceil(x) - double x; -#endif { int32_t i0,i1,j0; u_int32_t i,j; diff --git a/lib/msun/src/s_ceilf.c b/lib/msun/src/s_ceilf.c index 06993ad8c059..65b01f37900b 100644 --- a/lib/msun/src/s_ceilf.c +++ b/lib/msun/src/s_ceilf.c @@ -20,18 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float huge = 1.0e30; -#else -static float huge = 1.0e30; -#endif -#ifdef __STDC__ float ceilf(float x) -#else - float ceilf(x) - float x; -#endif { int32_t i0,j0; u_int32_t i; diff --git a/lib/msun/src/s_copysign.c b/lib/msun/src/s_copysign.c index 4f758d229d5a..74855988d5ff 100644 --- a/lib/msun/src/s_copysign.c +++ b/lib/msun/src/s_copysign.c @@ -23,12 +23,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double __generic_copysign(double x, double y) -#else - double __generic_copysign(x,y) - double x,y; -#endif { u_int32_t hx,hy; GET_HIGH_WORD(hx,x); diff --git a/lib/msun/src/s_copysignf.c b/lib/msun/src/s_copysignf.c index ae0980fcaa80..ae70aed912f2 100644 --- a/lib/msun/src/s_copysignf.c +++ b/lib/msun/src/s_copysignf.c @@ -26,12 +26,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float copysignf(float x, float y) -#else - float copysignf(x,y) - float x,y; -#endif { u_int32_t ix,iy; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/s_cos.c b/lib/msun/src/s_cos.c index 707af78c97f8..4ed9bbcc8733 100644 --- a/lib/msun/src/s_cos.c +++ b/lib/msun/src/s_cos.c @@ -48,12 +48,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double __generic_cos(double x) -#else - double __generic_cos(x) - double x; -#endif { double y[2],z=0.0; int32_t n, ix; diff --git a/lib/msun/src/s_cosf.c b/lib/msun/src/s_cosf.c index 4091350e412b..4c551c31f8c1 100644 --- a/lib/msun/src/s_cosf.c +++ b/lib/msun/src/s_cosf.c @@ -20,18 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float one=1.0; -#else -static float one=1.0; -#endif -#ifdef __STDC__ float cosf(float x) -#else - float cosf(x) - float x; -#endif { float y[2],z=0.0; int32_t n,ix; diff --git a/lib/msun/src/s_erf.c b/lib/msun/src/s_erf.c index bfe5b12bba5c..ee6bb790c3a6 100644 --- a/lib/msun/src/s_erf.c +++ b/lib/msun/src/s_erf.c @@ -112,11 +112,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif tiny = 1e-300, half= 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ @@ -191,12 +187,7 @@ sb5 = 2.55305040643316442583e+03, /* 0x40A3F219, 0xCEDF3BE6 */ sb6 = 4.74528541206955367215e+02, /* 0x407DA874, 0xE79FE763 */ sb7 = -2.24409524465858183362e+01; /* 0xC03670E2, 0x42712D62 */ -#ifdef __STDC__ double erf(double x) -#else - double erf(x) - double x; -#endif { int32_t hx,ix,i; double R,S,P,Q,s,y,z,r; @@ -247,12 +238,7 @@ sb7 = -2.24409524465858183362e+01; /* 0xC03670E2, 0x42712D62 */ if(hx>=0) return one-r/x; else return r/x-one; } -#ifdef __STDC__ double erfc(double x) -#else - double erfc(x) - double x; -#endif { int32_t hx,ix; double R,S,P,Q,s,y,z,r; diff --git a/lib/msun/src/s_erff.c b/lib/msun/src/s_erff.c index e9cc40951328..15d7be02087e 100644 --- a/lib/msun/src/s_erff.c +++ b/lib/msun/src/s_erff.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif tiny = 1e-30, half= 5.0000000000e-01, /* 0x3F000000 */ one = 1.0000000000e+00, /* 0x3F800000 */ @@ -99,12 +95,7 @@ sb5 = 2.5530502930e+03, /* 0x451f90ce */ sb6 = 4.7452853394e+02, /* 0x43ed43a7 */ sb7 = -2.2440952301e+01; /* 0xc1b38712 */ -#ifdef __STDC__ float erff(float x) -#else - float erff(x) - float x; -#endif { int32_t hx,ix,i; float R,S,P,Q,s,y,z,r; @@ -156,12 +147,7 @@ sb7 = -2.2440952301e+01; /* 0xc1b38712 */ if(hx>=0) return one-r/x; else return r/x-one; } -#ifdef __STDC__ float erfcf(float x) -#else - float erfcf(x) - float x; -#endif { int32_t hx,ix; float R,S,P,Q,s,y,z,r; diff --git a/lib/msun/src/s_expm1.c b/lib/msun/src/s_expm1.c index adc879b0ecbb..cfe85843482a 100644 --- a/lib/msun/src/s_expm1.c +++ b/lib/msun/src/s_expm1.c @@ -112,11 +112,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif one = 1.0, huge = 1.0e+300, tiny = 1.0e-300, @@ -131,12 +127,7 @@ Q3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */ Q4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */ Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */ -#ifdef __STDC__ double expm1(double x) -#else - double expm1(x) - double x; -#endif { double y,hi,lo,c,t,e,hxs,hfx,r1; int32_t k,xsb; diff --git a/lib/msun/src/s_expm1f.c b/lib/msun/src/s_expm1f.c index 0fc0699b9fc6..6ea4c5c186ec 100644 --- a/lib/msun/src/s_expm1f.c +++ b/lib/msun/src/s_expm1f.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif one = 1.0, huge = 1.0e+30, tiny = 1.0e-30, @@ -39,12 +35,7 @@ Q3 = -7.9365076090e-05, /* 0xb8a670cd */ Q4 = 4.0082177293e-06, /* 0x36867e54 */ Q5 = -2.0109921195e-07; /* 0xb457edbb */ -#ifdef __STDC__ float expm1f(float x) -#else - float expm1f(x) - float x; -#endif { float y,hi,lo,c,t,e,hxs,hfx,r1; int32_t k,xsb; diff --git a/lib/msun/src/s_fabs.c b/lib/msun/src/s_fabs.c index 74e59133685e..675e8d8c86d4 100644 --- a/lib/msun/src/s_fabs.c +++ b/lib/msun/src/s_fabs.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double fabs(double x) -#else - double fabs(x) - double x; -#endif { u_int32_t high; GET_HIGH_WORD(high,x); diff --git a/lib/msun/src/s_fabsf.c b/lib/msun/src/s_fabsf.c index b14ae6e6c346..7ecd3be1d1b6 100644 --- a/lib/msun/src/s_fabsf.c +++ b/lib/msun/src/s_fabsf.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float fabsf(float x) -#else - float fabsf(x) - float x; -#endif { u_int32_t ix; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/s_finite.c b/lib/msun/src/s_finite.c index 88e3298d5d79..0b0e622e9f0d 100644 --- a/lib/msun/src/s_finite.c +++ b/lib/msun/src/s_finite.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ int __generic_finite(double x) -#else - int __generic_finite(x) - double x; -#endif { int32_t hx; GET_HIGH_WORD(hx,x); diff --git a/lib/msun/src/s_finitef.c b/lib/msun/src/s_finitef.c index 07038db67a59..a8ccb92b427c 100644 --- a/lib/msun/src/s_finitef.c +++ b/lib/msun/src/s_finitef.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ int finitef(float x) -#else - int finitef(x) - float x; -#endif { int32_t ix; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/s_floor.c b/lib/msun/src/s_floor.c index 85ace779ede2..aca90ea57d51 100644 --- a/lib/msun/src/s_floor.c +++ b/lib/msun/src/s_floor.c @@ -26,18 +26,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double huge = 1.0e300; -#else -static double huge = 1.0e300; -#endif -#ifdef __STDC__ double __generic_floor(double x) -#else - double __generic_floor(x) - double x; -#endif { int32_t i0,i1,j0; u_int32_t i,j; diff --git a/lib/msun/src/s_floorf.c b/lib/msun/src/s_floorf.c index 116ec1dd6cb8..539216194f65 100644 --- a/lib/msun/src/s_floorf.c +++ b/lib/msun/src/s_floorf.c @@ -29,18 +29,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float huge = 1.0e30; -#else -static float huge = 1.0e30; -#endif -#ifdef __STDC__ float floorf(float x) -#else - float floorf(x) - float x; -#endif { int32_t i0,j0; u_int32_t i; diff --git a/lib/msun/src/s_frexp.c b/lib/msun/src/s_frexp.c index 178479d316f3..d3ce4465d71f 100644 --- a/lib/msun/src/s_frexp.c +++ b/lib/msun/src/s_frexp.c @@ -27,19 +27,10 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif two54 = 1.80143985094819840000e+16; /* 0x43500000, 0x00000000 */ -#ifdef __STDC__ double frexp(double x, int *eptr) -#else - double frexp(x, eptr) - double x; int *eptr; -#endif { int32_t hx, ix, lx; EXTRACT_WORDS(hx,lx,x); diff --git a/lib/msun/src/s_frexpf.c b/lib/msun/src/s_frexpf.c index fbec6670ad96..823889af9b21 100644 --- a/lib/msun/src/s_frexpf.c +++ b/lib/msun/src/s_frexpf.c @@ -20,19 +20,10 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif two25 = 3.3554432000e+07; /* 0x4c000000 */ -#ifdef __STDC__ float frexpf(float x, int *eptr) -#else - float frexpf(x, eptr) - float x; int *eptr; -#endif { int32_t hx,ix; GET_FLOAT_WORD(hx,x); diff --git a/lib/msun/src/s_ilogb.c b/lib/msun/src/s_ilogb.c index d2c82650a88b..f73aa5bc81dd 100644 --- a/lib/msun/src/s_ilogb.c +++ b/lib/msun/src/s_ilogb.c @@ -23,12 +23,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ int __generic_ilogb(double x) -#else - int __generic_ilogb(x) - double x; -#endif { int32_t hx,lx,ix; diff --git a/lib/msun/src/s_ilogbf.c b/lib/msun/src/s_ilogbf.c index a912d1a28ff9..b65a36546680 100644 --- a/lib/msun/src/s_ilogbf.c +++ b/lib/msun/src/s_ilogbf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ int ilogbf(float x) -#else - int ilogbf(x) - float x; -#endif { int32_t hx,ix; diff --git a/lib/msun/src/s_isnan.c b/lib/msun/src/s_isnan.c index 18cfcf2ac936..3122a1e9ae39 100644 --- a/lib/msun/src/s_isnan.c +++ b/lib/msun/src/s_isnan.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ int isnan(double x) -#else - int isnan(x) - double x; -#endif { int32_t hx,lx; EXTRACT_WORDS(hx,lx,x); diff --git a/lib/msun/src/s_isnanf.c b/lib/msun/src/s_isnanf.c index 0e48718a505a..b1444cd4a946 100644 --- a/lib/msun/src/s_isnanf.c +++ b/lib/msun/src/s_isnanf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ int isnanf(float x) -#else - int isnanf(x) - float x; -#endif { int32_t ix; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/s_ldexp.c b/lib/msun/src/s_ldexp.c index 463170114948..f0719fb6b34d 100644 --- a/lib/msun/src/s_ldexp.c +++ b/lib/msun/src/s_ldexp.c @@ -18,12 +18,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" #include <errno.h> -#ifdef __STDC__ double ldexp(double value, int exp) -#else - double ldexp(value, exp) - double value; int exp; -#endif { if(!finite(value)||value==0.0) return value; value = scalbn(value,exp); diff --git a/lib/msun/src/s_ldexpf.c b/lib/msun/src/s_ldexpf.c index 5091873072fb..c2352e0e8fe3 100644 --- a/lib/msun/src/s_ldexpf.c +++ b/lib/msun/src/s_ldexpf.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" #include <errno.h> -#ifdef __STDC__ float ldexpf(float value, int exp) -#else - float ldexpf(value, exp) - float value; int exp; -#endif { if(!finitef(value)||value==(float)0.0) return value; value = scalbnf(value,exp); diff --git a/lib/msun/src/s_log1p.c b/lib/msun/src/s_log1p.c index 0a60f9512607..18cc8f866384 100644 --- a/lib/msun/src/s_log1p.c +++ b/lib/msun/src/s_log1p.c @@ -82,11 +82,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif ln2_hi = 6.93147180369123816490e-01, /* 3fe62e42 fee00000 */ ln2_lo = 1.90821492927058770002e-10, /* 3dea39ef 35793c76 */ two54 = 1.80143985094819840000e+16, /* 43500000 00000000 */ @@ -98,18 +94,9 @@ Lp5 = 1.818357216161805012e-01, /* 3FC74664 96CB03DE */ Lp6 = 1.531383769920937332e-01, /* 3FC39A09 D078C69F */ Lp7 = 1.479819860511658591e-01; /* 3FC2F112 DF3E5244 */ -#ifdef __STDC__ static const double zero = 0.0; -#else -static double zero = 0.0; -#endif -#ifdef __STDC__ double log1p(double x) -#else - double log1p(x) - double x; -#endif { double hfsq,f,c,s,z,R,u; int32_t k,hx,hu,ax; diff --git a/lib/msun/src/s_log1pf.c b/lib/msun/src/s_log1pf.c index 2923d016c58a..c25d93022192 100644 --- a/lib/msun/src/s_log1pf.c +++ b/lib/msun/src/s_log1pf.c @@ -20,11 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif ln2_hi = 6.9313812256e-01, /* 0x3f317180 */ ln2_lo = 9.0580006145e-06, /* 0x3717f7d1 */ two25 = 3.355443200e+07, /* 0x4c000000 */ @@ -36,18 +32,9 @@ Lp5 = 1.8183572590e-01, /* 3E3A3325 */ Lp6 = 1.5313838422e-01, /* 3E1CD04F */ Lp7 = 1.4798198640e-01; /* 3E178897 */ -#ifdef __STDC__ static const float zero = 0.0; -#else -static float zero = 0.0; -#endif -#ifdef __STDC__ float log1pf(float x) -#else - float log1pf(x) - float x; -#endif { float hfsq,f,c,s,z,R,u; int32_t k,hx,hu,ax; diff --git a/lib/msun/src/s_logb.c b/lib/msun/src/s_logb.c index 8b724f49594c..e895abcce52d 100644 --- a/lib/msun/src/s_logb.c +++ b/lib/msun/src/s_logb.c @@ -23,12 +23,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double __generic_logb(double x) -#else - double __generic_logb(x) - double x; -#endif { int32_t lx,ix; EXTRACT_WORDS(ix,lx,x); diff --git a/lib/msun/src/s_logbf.c b/lib/msun/src/s_logbf.c index 1d345437bb2c..f8c29ef4597d 100644 --- a/lib/msun/src/s_logbf.c +++ b/lib/msun/src/s_logbf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float logbf(float x) -#else - float logbf(x) - float x; -#endif { int32_t ix; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/s_matherr.c b/lib/msun/src/s_matherr.c index 3f7a8275cd14..7b8937b51375 100644 --- a/lib/msun/src/s_matherr.c +++ b/lib/msun/src/s_matherr.c @@ -17,12 +17,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ int matherr(struct exception *x) -#else - int matherr(x) - struct exception *x; -#endif { int n=0; if(x->arg1!=x->arg1) return 0; diff --git a/lib/msun/src/s_modf.c b/lib/msun/src/s_modf.c index 50a261d71569..1adfc3f3f3c6 100644 --- a/lib/msun/src/s_modf.c +++ b/lib/msun/src/s_modf.c @@ -27,18 +27,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double one = 1.0; -#else -static double one = 1.0; -#endif -#ifdef __STDC__ double modf(double x, double *iptr) -#else - double modf(x, iptr) - double x,*iptr; -#endif { int32_t i0,i1,j0; u_int32_t i; diff --git a/lib/msun/src/s_modff.c b/lib/msun/src/s_modff.c index bedb49ffb7dd..2d165f6c98af 100644 --- a/lib/msun/src/s_modff.c +++ b/lib/msun/src/s_modff.c @@ -20,18 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float one = 1.0; -#else -static float one = 1.0; -#endif -#ifdef __STDC__ float modff(float x, float *iptr) -#else - float modff(x, iptr) - float x,*iptr; -#endif { int32_t i0,j0; u_int32_t i; diff --git a/lib/msun/src/s_nextafter.c b/lib/msun/src/s_nextafter.c index a54b82312a4e..a6f78ebc51a9 100644 --- a/lib/msun/src/s_nextafter.c +++ b/lib/msun/src/s_nextafter.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double nextafter(double x, double y) -#else - double nextafter(x,y) - double x,y; -#endif { int32_t hx,hy,ix,iy; u_int32_t lx,ly; diff --git a/lib/msun/src/s_nextafterf.c b/lib/msun/src/s_nextafterf.c index d976a20167c2..67dbaa6cd5ff 100644 --- a/lib/msun/src/s_nextafterf.c +++ b/lib/msun/src/s_nextafterf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float nextafterf(float x, float y) -#else - float nextafterf(x,y) - float x,y; -#endif { int32_t hx,hy,ix,iy; diff --git a/lib/msun/src/s_rint.c b/lib/msun/src/s_rint.c index aa4145209528..88932ecde31a 100644 --- a/lib/msun/src/s_rint.c +++ b/lib/msun/src/s_rint.c @@ -34,22 +34,13 @@ static char rcsid[] = "$FreeBSD$"; * assigned and returned. Use long double even in the !__STDC__ case in * case this is compiled with gcc -traditional. */ -#ifdef __STDC__ static const long double -#else -static long double -#endif TWO52[2]={ 4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */ -4.50359962737049600000e+15, /* 0xC3300000, 0x00000000 */ }; -#ifdef __STDC__ double __generic_rint(double x) -#else - double __generic_rint(x) - double x; -#endif { int32_t i0,j0,sx; u_int32_t i,i1; diff --git a/lib/msun/src/s_rintf.c b/lib/msun/src/s_rintf.c index 3bb8b1cd374b..ae7ccc05e09f 100644 --- a/lib/msun/src/s_rintf.c +++ b/lib/msun/src/s_rintf.c @@ -26,22 +26,13 @@ static char rcsid[] = "$FreeBSD$"; * precision and doesn't clip them to float precision when they are * assigned and returned. */ -#ifdef __STDC__ static const double -#else -static double -#endif TWO23[2]={ 8.3886080000e+06, /* 0x4b000000 */ -8.3886080000e+06, /* 0xcb000000 */ }; -#ifdef __STDC__ float rintf(float x) -#else - float rintf(x) - float x; -#endif { int32_t i0,j0,sx; u_int32_t i,i1; diff --git a/lib/msun/src/s_scalbn.c b/lib/msun/src/s_scalbn.c index b69bdcd58cdb..491e44cfe456 100644 --- a/lib/msun/src/s_scalbn.c +++ b/lib/msun/src/s_scalbn.c @@ -24,22 +24,13 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double -#else -static double -#endif two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */ twom54 = 5.55111512312578270212e-17, /* 0x3C900000, 0x00000000 */ huge = 1.0e+300, tiny = 1.0e-300; -#ifdef __STDC__ double __generic_scalbn (double x, int n) -#else - double __generic_scalbn (x,n) - double x; int n; -#endif { int32_t k,hx,lx; EXTRACT_WORDS(hx,lx,x); diff --git a/lib/msun/src/s_scalbnf.c b/lib/msun/src/s_scalbnf.c index 7dd75956df3f..562e39544c4d 100644 --- a/lib/msun/src/s_scalbnf.c +++ b/lib/msun/src/s_scalbnf.c @@ -20,22 +20,13 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif two25 = 3.355443200e+07, /* 0x4c000000 */ twom25 = 2.9802322388e-08, /* 0x33000000 */ huge = 1.0e+30, tiny = 1.0e-30; -#ifdef __STDC__ float scalbnf (float x, int n) -#else - float scalbn (x,n) - float x; int n; -#endif { int32_t k,ix; GET_FLOAT_WORD(ix,x); diff --git a/lib/msun/src/s_significand.c b/lib/msun/src/s_significand.c index 64d4623e857f..a3707ea80bed 100644 --- a/lib/msun/src/s_significand.c +++ b/lib/msun/src/s_significand.c @@ -23,12 +23,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double __generic_significand(double x) -#else - double __generic_significand(x) - double x; -#endif { return __ieee754_scalb(x,(double) -ilogb(x)); } diff --git a/lib/msun/src/s_significandf.c b/lib/msun/src/s_significandf.c index 73cfa71c33b3..10d89020ef6f 100644 --- a/lib/msun/src/s_significandf.c +++ b/lib/msun/src/s_significandf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float significandf(float x) -#else - float significandf(x) - float x; -#endif { return __ieee754_scalbf(x,(float) -ilogbf(x)); } diff --git a/lib/msun/src/s_sin.c b/lib/msun/src/s_sin.c index e6b099edb527..69df527a3106 100644 --- a/lib/msun/src/s_sin.c +++ b/lib/msun/src/s_sin.c @@ -48,12 +48,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double __generic_sin(double x) -#else - double __generic_sin(x) - double x; -#endif { double y[2],z=0.0; int32_t n, ix; diff --git a/lib/msun/src/s_sinf.c b/lib/msun/src/s_sinf.c index ba3adffc1b60..9e1573f8f583 100644 --- a/lib/msun/src/s_sinf.c +++ b/lib/msun/src/s_sinf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float sinf(float x) -#else - float sinf(x) - float x; -#endif { float y[2],z=0.0; int32_t n, ix; diff --git a/lib/msun/src/s_tan.c b/lib/msun/src/s_tan.c index e02584e3116f..1e5c6a0f9aff 100644 --- a/lib/msun/src/s_tan.c +++ b/lib/msun/src/s_tan.c @@ -47,12 +47,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double __generic_tan(double x) -#else - double __generic_tan(x) - double x; -#endif { double y[2],z=0.0; int32_t n, ix; diff --git a/lib/msun/src/s_tanf.c b/lib/msun/src/s_tanf.c index 65ab1bf925e0..da3dfd5759d6 100644 --- a/lib/msun/src/s_tanf.c +++ b/lib/msun/src/s_tanf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float tanf(float x) -#else - float tanf(x) - float x; -#endif { float y[2],z=0.0; int32_t n, ix; diff --git a/lib/msun/src/s_tanh.c b/lib/msun/src/s_tanh.c index 4f58fcffeecb..01b4f616f0f4 100644 --- a/lib/msun/src/s_tanh.c +++ b/lib/msun/src/s_tanh.c @@ -41,18 +41,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const double one=1.0, two=2.0, tiny = 1.0e-300; -#else -static double one=1.0, two=2.0, tiny = 1.0e-300; -#endif -#ifdef __STDC__ double tanh(double x) -#else - double tanh(x) - double x; -#endif { double t,z; int32_t jx,ix; diff --git a/lib/msun/src/s_tanhf.c b/lib/msun/src/s_tanhf.c index cdfd5f6c09aa..5cad6ad61162 100644 --- a/lib/msun/src/s_tanhf.c +++ b/lib/msun/src/s_tanhf.c @@ -20,18 +20,9 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float one=1.0, two=2.0, tiny = 1.0e-30; -#else -static float one=1.0, two=2.0, tiny = 1.0e-30; -#endif -#ifdef __STDC__ float tanhf(float x) -#else - float tanhf(x) - float x; -#endif { float t,z; int32_t jx,ix; diff --git a/lib/msun/src/w_acos.c b/lib/msun/src/w_acos.c index 3e8c6e53cf69..5b1d1ba6350a 100644 --- a/lib/msun/src/w_acos.c +++ b/lib/msun/src/w_acos.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double acos(double x) /* wrapper acos */ -#else - double acos(x) /* wrapper acos */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_acos(x); diff --git a/lib/msun/src/w_acosf.c b/lib/msun/src/w_acosf.c index c2292c655d5f..8a1b97a4b0fc 100644 --- a/lib/msun/src/w_acosf.c +++ b/lib/msun/src/w_acosf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float acosf(float x) /* wrapper acosf */ -#else - float acosf(x) /* wrapper acosf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_acosf(x); diff --git a/lib/msun/src/w_acosh.c b/lib/msun/src/w_acosh.c index 197d6d75e2fa..53514fdf1aba 100644 --- a/lib/msun/src/w_acosh.c +++ b/lib/msun/src/w_acosh.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double acosh(double x) /* wrapper acosh */ -#else - double acosh(x) /* wrapper acosh */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_acosh(x); diff --git a/lib/msun/src/w_acoshf.c b/lib/msun/src/w_acoshf.c index 08798899ff31..7ef602c51bc2 100644 --- a/lib/msun/src/w_acoshf.c +++ b/lib/msun/src/w_acoshf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float acoshf(float x) /* wrapper acoshf */ -#else - float acoshf(x) /* wrapper acoshf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_acoshf(x); diff --git a/lib/msun/src/w_asin.c b/lib/msun/src/w_asin.c index d5b25238ab2d..ef109b245983 100644 --- a/lib/msun/src/w_asin.c +++ b/lib/msun/src/w_asin.c @@ -23,12 +23,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double asin(double x) /* wrapper asin */ -#else - double asin(x) /* wrapper asin */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_asin(x); diff --git a/lib/msun/src/w_asinf.c b/lib/msun/src/w_asinf.c index 6972cb9d6b3d..5c0e3678faa1 100644 --- a/lib/msun/src/w_asinf.c +++ b/lib/msun/src/w_asinf.c @@ -26,12 +26,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float asinf(float x) /* wrapper asinf */ -#else - float asinf(x) /* wrapper asinf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_asinf(x); diff --git a/lib/msun/src/w_atan2.c b/lib/msun/src/w_atan2.c index 8f4c826f494e..d2e9da4ba001 100644 --- a/lib/msun/src/w_atan2.c +++ b/lib/msun/src/w_atan2.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double atan2(double y, double x) /* wrapper atan2 */ -#else - double atan2(y,x) /* wrapper atan2 */ - double y,x; -#endif { #ifdef _IEEE_LIBM return __ieee754_atan2(y,x); diff --git a/lib/msun/src/w_atan2f.c b/lib/msun/src/w_atan2f.c index 45e5a14d9b99..a4a258d09aa8 100644 --- a/lib/msun/src/w_atan2f.c +++ b/lib/msun/src/w_atan2f.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float atan2f(float y, float x) /* wrapper atan2f */ -#else - float atan2f(y,x) /* wrapper atan2 */ - float y,x; -#endif { #ifdef _IEEE_LIBM return __ieee754_atan2f(y,x); diff --git a/lib/msun/src/w_atanh.c b/lib/msun/src/w_atanh.c index d96c9b77cee4..58728b0d0600 100644 --- a/lib/msun/src/w_atanh.c +++ b/lib/msun/src/w_atanh.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double atanh(double x) /* wrapper atanh */ -#else - double atanh(x) /* wrapper atanh */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_atanh(x); diff --git a/lib/msun/src/w_atanhf.c b/lib/msun/src/w_atanhf.c index 9da087b28517..39991e090221 100644 --- a/lib/msun/src/w_atanhf.c +++ b/lib/msun/src/w_atanhf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float atanhf(float x) /* wrapper atanhf */ -#else - float atanhf(x) /* wrapper atanhf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_atanhf(x); diff --git a/lib/msun/src/w_cosh.c b/lib/msun/src/w_cosh.c index f20d4c52c4a2..c5164d9b7b78 100644 --- a/lib/msun/src/w_cosh.c +++ b/lib/msun/src/w_cosh.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double cosh(double x) /* wrapper cosh */ -#else - double cosh(x) /* wrapper cosh */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_cosh(x); diff --git a/lib/msun/src/w_coshf.c b/lib/msun/src/w_coshf.c index 61e74f8c7c99..1c0d5a2c8210 100644 --- a/lib/msun/src/w_coshf.c +++ b/lib/msun/src/w_coshf.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float coshf(float x) /* wrapper coshf */ -#else - float coshf(x) /* wrapper coshf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_coshf(x); diff --git a/lib/msun/src/w_exp.c b/lib/msun/src/w_exp.c index 7d1e74b5a711..8a1186d3899a 100644 --- a/lib/msun/src/w_exp.c +++ b/lib/msun/src/w_exp.c @@ -21,20 +21,11 @@ static char rcsid[] = "$FreeBSD$"; #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 { #ifdef _IEEE_LIBM return __ieee754_exp(x); diff --git a/lib/msun/src/w_expf.c b/lib/msun/src/w_expf.c index 07bd13b73ffb..4a239ade3f33 100644 --- a/lib/msun/src/w_expf.c +++ b/lib/msun/src/w_expf.c @@ -24,20 +24,11 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ static const float -#else -static float -#endif o_threshold= 8.8721679688e+01, /* 0x42b17180 */ u_threshold= -1.0397208405e+02; /* 0xc2cff1b5 */ -#ifdef __STDC__ float expf(float x) /* wrapper expf */ -#else - float expf(x) /* wrapper expf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_expf(x); diff --git a/lib/msun/src/w_fmod.c b/lib/msun/src/w_fmod.c index 4ee45a16745e..4c1c9606b000 100644 --- a/lib/msun/src/w_fmod.c +++ b/lib/msun/src/w_fmod.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double fmod(double x, double y) /* wrapper fmod */ -#else - double fmod(x,y) /* wrapper fmod */ - double x,y; -#endif { #ifdef _IEEE_LIBM return __ieee754_fmod(x,y); diff --git a/lib/msun/src/w_fmodf.c b/lib/msun/src/w_fmodf.c index b948ee17ae5d..308e31d72f5f 100644 --- a/lib/msun/src/w_fmodf.c +++ b/lib/msun/src/w_fmodf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float fmodf(float x, float y) /* wrapper fmodf */ -#else - float fmodf(x,y) /* wrapper fmodf */ - float x,y; -#endif { #ifdef _IEEE_LIBM return __ieee754_fmodf(x,y); diff --git a/lib/msun/src/w_gamma.c b/lib/msun/src/w_gamma.c index fb3d12709d89..25a7fdc8a721 100644 --- a/lib/msun/src/w_gamma.c +++ b/lib/msun/src/w_gamma.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; extern int signgam; -#ifdef __STDC__ double gamma(double x) -#else - double gamma(x) - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_gamma_r(x,&signgam); diff --git a/lib/msun/src/w_gamma_r.c b/lib/msun/src/w_gamma_r.c index 2f10023b3191..6c8e6b4f96c0 100644 --- a/lib/msun/src/w_gamma_r.c +++ b/lib/msun/src/w_gamma_r.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double gamma_r(double x, int *signgamp) /* wrapper lgamma_r */ -#else - double gamma_r(x,signgamp) /* wrapper lgamma_r */ - double x; int *signgamp; -#endif { #ifdef _IEEE_LIBM return __ieee754_gamma_r(x,signgamp); diff --git a/lib/msun/src/w_gammaf.c b/lib/msun/src/w_gammaf.c index 0e579c78c73f..89f8abcf2383 100644 --- a/lib/msun/src/w_gammaf.c +++ b/lib/msun/src/w_gammaf.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; extern int signgam; -#ifdef __STDC__ float gammaf(float x) -#else - float gammaf(x) - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_gammaf_r(x,&signgam); diff --git a/lib/msun/src/w_gammaf_r.c b/lib/msun/src/w_gammaf_r.c index aa71d6987d18..2fdf115cee13 100644 --- a/lib/msun/src/w_gammaf_r.c +++ b/lib/msun/src/w_gammaf_r.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float gammaf_r(float x, int *signgamp) /* wrapper lgammaf_r */ -#else - float gammaf_r(x,signgamp) /* wrapper lgammaf_r */ - float x; int *signgamp; -#endif { #ifdef _IEEE_LIBM return __ieee754_gammaf_r(x,signgamp); diff --git a/lib/msun/src/w_hypot.c b/lib/msun/src/w_hypot.c index 6486c8ded645..70715e8b225c 100644 --- a/lib/msun/src/w_hypot.c +++ b/lib/msun/src/w_hypot.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double hypot(double x, double y)/* wrapper hypot */ -#else - double hypot(x,y) /* wrapper hypot */ - double x,y; -#endif { #ifdef _IEEE_LIBM return __ieee754_hypot(x,y); diff --git a/lib/msun/src/w_hypotf.c b/lib/msun/src/w_hypotf.c index 77c055d020eb..893482cd1f97 100644 --- a/lib/msun/src/w_hypotf.c +++ b/lib/msun/src/w_hypotf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float hypotf(float x, float y) /* wrapper hypotf */ -#else - float hypotf(x,y) /* wrapper hypotf */ - float x,y; -#endif { #ifdef _IEEE_LIBM return __ieee754_hypotf(x,y); diff --git a/lib/msun/src/w_j0.c b/lib/msun/src/w_j0.c index e1a4f85c7eee..c0e5a0286116 100644 --- a/lib/msun/src/w_j0.c +++ b/lib/msun/src/w_j0.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double j0(double x) /* wrapper j0 */ -#else - double j0(x) /* wrapper j0 */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_j0(x); diff --git a/lib/msun/src/w_j0f.c b/lib/msun/src/w_j0f.c index 2c6df51806b9..34c114d086cc 100644 --- a/lib/msun/src/w_j0f.c +++ b/lib/msun/src/w_j0f.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float j0f(float x) /* wrapper j0f */ -#else - float j0f(x) /* wrapper j0f */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_j0f(x); diff --git a/lib/msun/src/w_j1.c b/lib/msun/src/w_j1.c index 86f1a3f71d9e..39066d18bd1e 100644 --- a/lib/msun/src/w_j1.c +++ b/lib/msun/src/w_j1.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double j1(double x) /* wrapper j1 */ -#else - double j1(x) /* wrapper j1 */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_j1(x); diff --git a/lib/msun/src/w_j1f.c b/lib/msun/src/w_j1f.c index 8ef1478dc21d..d379a5ab7b2e 100644 --- a/lib/msun/src/w_j1f.c +++ b/lib/msun/src/w_j1f.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float j1f(float x) /* wrapper j1f */ -#else - float j1f(x) /* wrapper j1f */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_j1f(x); diff --git a/lib/msun/src/w_jn.c b/lib/msun/src/w_jn.c index 0b087e512b48..0c90017e6889 100644 --- a/lib/msun/src/w_jn.c +++ b/lib/msun/src/w_jn.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double jn(int n, double x) /* wrapper jn */ -#else - double jn(n,x) /* wrapper jn */ - double x; int n; -#endif { #ifdef _IEEE_LIBM return __ieee754_jn(n,x); diff --git a/lib/msun/src/w_jnf.c b/lib/msun/src/w_jnf.c index 9ce1bede7c82..e54cbac8afd0 100644 --- a/lib/msun/src/w_jnf.c +++ b/lib/msun/src/w_jnf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float jnf(int n, float x) /* wrapper jnf */ -#else - float jnf(n,x) /* wrapper jnf */ - float x; int n; -#endif { #ifdef _IEEE_LIBM return __ieee754_jnf(n,x); diff --git a/lib/msun/src/w_lgamma.c b/lib/msun/src/w_lgamma.c index 3ee3999b839b..8d68c9a6a5ee 100644 --- a/lib/msun/src/w_lgamma.c +++ b/lib/msun/src/w_lgamma.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; extern int signgam; -#ifdef __STDC__ double lgamma(double x) -#else - double lgamma(x) - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_lgamma_r(x,&signgam); diff --git a/lib/msun/src/w_lgamma_r.c b/lib/msun/src/w_lgamma_r.c index 80fd27e0eecc..6e01a16ca5a7 100644 --- a/lib/msun/src/w_lgamma_r.c +++ b/lib/msun/src/w_lgamma_r.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double lgamma_r(double x, int *signgamp) /* wrapper lgamma_r */ -#else - double lgamma_r(x,signgamp) /* wrapper lgamma_r */ - double x; int *signgamp; -#endif { #ifdef _IEEE_LIBM return __ieee754_lgamma_r(x,signgamp); diff --git a/lib/msun/src/w_lgammaf.c b/lib/msun/src/w_lgammaf.c index 7a237ca0c373..f7386731cab6 100644 --- a/lib/msun/src/w_lgammaf.c +++ b/lib/msun/src/w_lgammaf.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; extern int signgam; -#ifdef __STDC__ float lgammaf(float x) -#else - float lgammaf(x) - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_lgammaf_r(x,&signgam); diff --git a/lib/msun/src/w_lgammaf_r.c b/lib/msun/src/w_lgammaf_r.c index 2646669a1a59..e21d91545b19 100644 --- a/lib/msun/src/w_lgammaf_r.c +++ b/lib/msun/src/w_lgammaf_r.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float lgammaf_r(float x, int *signgamp) /* wrapper lgammaf_r */ -#else - float lgammaf_r(x,signgamp) /* wrapper lgammaf_r */ - float x; int *signgamp; -#endif { #ifdef _IEEE_LIBM return __ieee754_lgammaf_r(x,signgamp); diff --git a/lib/msun/src/w_log.c b/lib/msun/src/w_log.c index 7150aaa70c11..2e48d2ef7e8f 100644 --- a/lib/msun/src/w_log.c +++ b/lib/msun/src/w_log.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double log(double x) /* wrapper log */ -#else - double log(x) /* wrapper log */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_log(x); diff --git a/lib/msun/src/w_log10.c b/lib/msun/src/w_log10.c index e6cdca11da02..0b42d3feb601 100644 --- a/lib/msun/src/w_log10.c +++ b/lib/msun/src/w_log10.c @@ -22,12 +22,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ double log10(double x) /* wrapper log10 */ -#else - double log10(x) /* wrapper log10 */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_log10(x); diff --git a/lib/msun/src/w_log10f.c b/lib/msun/src/w_log10f.c index b5f1247663d4..688ecac742bd 100644 --- a/lib/msun/src/w_log10f.c +++ b/lib/msun/src/w_log10f.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float log10f(float x) /* wrapper log10f */ -#else - float log10f(x) /* wrapper log10f */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_log10f(x); diff --git a/lib/msun/src/w_logf.c b/lib/msun/src/w_logf.c index dee641b01675..73521d0a4888 100644 --- a/lib/msun/src/w_logf.c +++ b/lib/msun/src/w_logf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float logf(float x) /* wrapper logf */ -#else - float logf(x) /* wrapper logf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_logf(x); diff --git a/lib/msun/src/w_pow.c b/lib/msun/src/w_pow.c index 571897cca041..c63bb72700b8 100644 --- a/lib/msun/src/w_pow.c +++ b/lib/msun/src/w_pow.c @@ -19,13 +19,12 @@ #include "math.h" #include "math_private.h" - -#ifdef __STDC__ - double pow(double x, double y) /* wrapper pow */ -#else - double pow(x,y) /* wrapper pow */ - double x,y; +#ifndef lint +static char rcsid[] = "$FreeBSD$"; #endif + +double +pow(double x, double y) /* wrapper pow */ { #ifdef _IEEE_LIBM return __ieee754_pow(x,y); diff --git a/lib/msun/src/w_powf.c b/lib/msun/src/w_powf.c index 24a2cf442163..4af2abd37e5c 100644 --- a/lib/msun/src/w_powf.c +++ b/lib/msun/src/w_powf.c @@ -25,12 +25,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math_private.h" -#ifdef __STDC__ float powf(float x, float y) /* wrapper powf */ -#else - float powf(x,y) /* wrapper powf */ - float x,y; -#endif { #ifdef _IEEE_LIBM return __ieee754_powf(x,y); diff --git a/lib/msun/src/w_remainder.c b/lib/msun/src/w_remainder.c index 7d40df436220..258d308c06a1 100644 --- a/lib/msun/src/w_remainder.c +++ b/lib/msun/src/w_remainder.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double remainder(double x, double y) /* wrapper remainder */ -#else - double remainder(x,y) /* wrapper remainder */ - double x,y; -#endif { #ifdef _IEEE_LIBM return __ieee754_remainder(x,y); diff --git a/lib/msun/src/w_remainderf.c b/lib/msun/src/w_remainderf.c index 9cc28d4c1905..043033b268e5 100644 --- a/lib/msun/src/w_remainderf.c +++ b/lib/msun/src/w_remainderf.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float remainderf(float x, float y) /* wrapper remainder */ -#else - float remainderf(x,y) /* wrapper remainder */ - float x,y; -#endif { #ifdef _IEEE_LIBM return __ieee754_remainderf(x,y); diff --git a/lib/msun/src/w_scalb.c b/lib/msun/src/w_scalb.c index c12b5e82f256..b340eb135b0e 100644 --- a/lib/msun/src/w_scalb.c +++ b/lib/msun/src/w_scalb.c @@ -25,20 +25,11 @@ static char rcsid[] = "$FreeBSD$"; #include <errno.h> -#ifdef __STDC__ #ifdef _SCALB_INT double scalb(double x, int fn) /* wrapper scalb */ #else double scalb(double x, double fn) /* wrapper scalb */ #endif -#else - double scalb(x,fn) /* wrapper scalb */ -#ifdef _SCALB_INT - double x; int fn; -#else - double x,fn; -#endif -#endif { #ifdef _IEEE_LIBM return __ieee754_scalb(x,fn); diff --git a/lib/msun/src/w_scalbf.c b/lib/msun/src/w_scalbf.c index 357850303d86..1e19e24e0022 100644 --- a/lib/msun/src/w_scalbf.c +++ b/lib/msun/src/w_scalbf.c @@ -28,20 +28,11 @@ static char rcsid[] = "$FreeBSD$"; #include <errno.h> -#ifdef __STDC__ #ifdef _SCALB_INT float scalbf(float x, int fn) /* wrapper scalbf */ #else float scalbf(float x, float fn) /* wrapper scalbf */ #endif -#else - float scalbf(x,fn) /* wrapper scalbf */ -#ifdef _SCALB_INT - float x; int fn; -#else - float x,fn; -#endif -#endif { #ifdef _IEEE_LIBM return __ieee754_scalbf(x,fn); diff --git a/lib/msun/src/w_sinh.c b/lib/msun/src/w_sinh.c index 7ed5ec786651..a1d8b9e522b5 100644 --- a/lib/msun/src/w_sinh.c +++ b/lib/msun/src/w_sinh.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double sinh(double x) /* wrapper sinh */ -#else - double sinh(x) /* wrapper sinh */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_sinh(x); diff --git a/lib/msun/src/w_sinhf.c b/lib/msun/src/w_sinhf.c index 345440d6442e..4bf195500a7f 100644 --- a/lib/msun/src/w_sinhf.c +++ b/lib/msun/src/w_sinhf.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float sinhf(float x) /* wrapper sinhf */ -#else - float sinhf(x) /* wrapper sinhf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_sinhf(x); diff --git a/lib/msun/src/w_sqrt.c b/lib/msun/src/w_sqrt.c index f9b08a41bf05..8ce64d798dc8 100644 --- a/lib/msun/src/w_sqrt.c +++ b/lib/msun/src/w_sqrt.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double sqrt(double x) /* wrapper sqrt */ -#else - double sqrt(x) /* wrapper sqrt */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_sqrt(x); diff --git a/lib/msun/src/w_sqrtf.c b/lib/msun/src/w_sqrtf.c index 1b50a1833ceb..57625f45007d 100644 --- a/lib/msun/src/w_sqrtf.c +++ b/lib/msun/src/w_sqrtf.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float sqrtf(float x) /* wrapper sqrtf */ -#else - float sqrt(x) /* wrapper sqrtf */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_sqrtf(x); diff --git a/lib/msun/src/w_y0.c b/lib/msun/src/w_y0.c index d2da8ce9b4f4..ed5076fe2a0f 100644 --- a/lib/msun/src/w_y0.c +++ b/lib/msun/src/w_y0.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double y0(double x) /* wrapper y0 */ -#else - double y0(x) /* wrapper y0 */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_y0(x); diff --git a/lib/msun/src/w_y0f.c b/lib/msun/src/w_y0f.c index a716441ab9bd..1658aaa369a6 100644 --- a/lib/msun/src/w_y0f.c +++ b/lib/msun/src/w_y0f.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float y0f(float x) /* wrapper y0f */ -#else - float y0f(x) /* wrapper y0f */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_y0f(x); diff --git a/lib/msun/src/w_y1.c b/lib/msun/src/w_y1.c index cde47aacaacf..2d94967a9c37 100644 --- a/lib/msun/src/w_y1.c +++ b/lib/msun/src/w_y1.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double y1(double x) /* wrapper y1 */ -#else - double y1(x) /* wrapper y1 */ - double x; -#endif { #ifdef _IEEE_LIBM return __ieee754_y1(x); diff --git a/lib/msun/src/w_y1f.c b/lib/msun/src/w_y1f.c index 0b8f33225c13..dbd0751053e2 100644 --- a/lib/msun/src/w_y1f.c +++ b/lib/msun/src/w_y1f.c @@ -24,12 +24,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float y1f(float x) /* wrapper y1f */ -#else - float y1f(x) /* wrapper y1f */ - float x; -#endif { #ifdef _IEEE_LIBM return __ieee754_y1f(x); diff --git a/lib/msun/src/w_yn.c b/lib/msun/src/w_yn.c index 2323d26ffb56..12c3f405b15b 100644 --- a/lib/msun/src/w_yn.c +++ b/lib/msun/src/w_yn.c @@ -21,12 +21,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ double yn(int n, double x) /* wrapper yn */ -#else - double yn(n,x) /* wrapper yn */ - double x; int n; -#endif { #ifdef _IEEE_LIBM return __ieee754_yn(n,x); diff --git a/lib/msun/src/w_ynf.c b/lib/msun/src/w_ynf.c index f7a24981c310..bd4a09dfcb07 100644 --- a/lib/msun/src/w_ynf.c +++ b/lib/msun/src/w_ynf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -#ifdef __STDC__ float ynf(int n, float x) /* wrapper ynf */ -#else - float ynf(n,x) /* wrapper ynf */ - float x; int n; -#endif { #ifdef _IEEE_LIBM return __ieee754_ynf(n,x); |