Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/mathfp/sf_erf.c')
-rw-r--r--newlib/libm/mathfp/sf_erf.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/newlib/libm/mathfp/sf_erf.c b/newlib/libm/mathfp/sf_erf.c
index aa209f65a..a95b070a5 100644
--- a/newlib/libm/mathfp/sf_erf.c
+++ b/newlib/libm/mathfp/sf_erf.c
@@ -19,11 +19,7 @@
#define const
#endif
-#ifdef __STDC__
static const float
-#else
-static float
-#endif
tiny = 1e-30,
half= 5.0000000000e-01, /* 0x3F000000 */
one = 1.0000000000e+00, /* 0x3F800000 */
@@ -98,12 +94,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;
@@ -155,12 +146,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;
@@ -223,22 +209,12 @@ sb7 = -2.2440952301e+01; /* 0xc1b38712 */
#ifdef _DOUBLE_IS_32BITS
-#ifdef __STDC__
double erf(double x)
-#else
- double erf(x)
- double x;
-#endif
{
return (double) erff((float) x);
}
-#ifdef __STDC__
double erfc(double x)
-#else
- double erfc(x)
- double x;
-#endif
{
return (double) erfcf((float) x);
}