diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/s_ldexp.c | 7 | ||||
-rw-r--r-- | math/s_ldexpf.c | 7 | ||||
-rw-r--r-- | math/s_ldexpl.c | 7 | ||||
-rw-r--r-- | math/s_nextafter.c | 7 | ||||
-rw-r--r-- | math/s_nexttowardf.c | 8 | ||||
-rw-r--r-- | math/s_significand.c | 7 | ||||
-rw-r--r-- | math/s_significandf.c | 7 | ||||
-rw-r--r-- | math/s_significandl.c | 7 | ||||
-rw-r--r-- | math/w_jnl.c | 14 |
9 files changed, 10 insertions, 61 deletions
diff --git a/math/s_ldexp.c b/math/s_ldexp.c index e99021776f..aa68b017f2 100644 --- a/math/s_ldexp.c +++ b/math/s_ldexp.c @@ -18,12 +18,7 @@ static char rcsid[] = "$NetBSD: s_ldexp.c,v 1.6 1995/05/10 20:47:40 jtc Exp $"; #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 +double __ldexp(double value, int exp) { if(!__finite(value)||value==0.0) return value; value = __scalbn(value,exp); diff --git a/math/s_ldexpf.c b/math/s_ldexpf.c index f312bfe5ff..b105e293cc 100644 --- a/math/s_ldexpf.c +++ b/math/s_ldexpf.c @@ -21,12 +21,7 @@ static char rcsid[] = "$NetBSD: s_ldexpf.c,v 1.3 1995/05/10 20:47:42 jtc Exp $"; #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 +float __ldexpf(float value, int exp) { if(!__finitef(value)||value==(float)0.0) return value; value = __scalbnf(value,exp); diff --git a/math/s_ldexpl.c b/math/s_ldexpl.c index 6a9ea46550..1bcc7680b4 100644 --- a/math/s_ldexpl.c +++ b/math/s_ldexpl.c @@ -22,12 +22,7 @@ static char rcsid[] = "$NetBSD: $"; #include <math_private.h> #include <errno.h> -#ifdef __STDC__ - long double __ldexpl(long double value, int exp) -#else - long double __ldexpl(value, exp) - long double value; int exp; -#endif +long double __ldexpl(long double value, int exp) { if(!__finitel(value)||value==0.0) return value; value = __scalbnl(value,exp); diff --git a/math/s_nextafter.c b/math/s_nextafter.c index d2af52dda3..7b026f00ce 100644 --- a/math/s_nextafter.c +++ b/math/s_nextafter.c @@ -29,12 +29,7 @@ static char rcsid[] = "$NetBSD: s_nextafter.c,v 1.8 1995/05/10 20:47:58 jtc Exp #include <math_private.h> #include <float.h> -#ifdef __STDC__ - double __nextafter(double x, double y) -#else - double __nextafter(x,y) - double x,y; -#endif +double __nextafter(double x, double y) { int32_t hx,hy,ix,iy; u_int32_t lx,ly; diff --git a/math/s_nexttowardf.c b/math/s_nexttowardf.c index 0494d1a4e9..fb008d579c 100644 --- a/math/s_nexttowardf.c +++ b/math/s_nexttowardf.c @@ -24,13 +24,7 @@ #include <math_private.h> #include <float.h> -#ifdef __STDC__ - float __nexttowardf(float x, long double y) -#else - float __nexttowardf(x,y) - float x; - long double y; -#endif +float __nexttowardf(float x, long double y) { int32_t hx,hy,ix,iy; u_int32_t ly; diff --git a/math/s_significand.c b/math/s_significand.c index 197bc9c6e3..348bdcf6ad 100644 --- a/math/s_significand.c +++ b/math/s_significand.c @@ -23,12 +23,7 @@ static char rcsid[] = "$NetBSD: s_significand.c,v 1.6 1995/05/10 20:48:11 jtc Ex #include <math.h> #include <math_private.h> -#ifdef __STDC__ - double __significand(double x) -#else - double __significand(x) - double x; -#endif +double __significand(double x) { return __ieee754_scalb(x,(double) -__ilogb(x)); } diff --git a/math/s_significandf.c b/math/s_significandf.c index 7cbb961ea1..876e53932b 100644 --- a/math/s_significandf.c +++ b/math/s_significandf.c @@ -20,12 +20,7 @@ static char rcsid[] = "$NetBSD: s_significandf.c,v 1.3 1995/05/10 20:48:13 jtc E #include <math.h> #include <math_private.h> -#ifdef __STDC__ - float __significandf(float x) -#else - float __significandf(x) - float x; -#endif +float __significandf(float x) { return __ieee754_scalbf(x,(float) -__ilogbf(x)); } diff --git a/math/s_significandl.c b/math/s_significandl.c index fab5b9fc8d..0e3337b2fe 100644 --- a/math/s_significandl.c +++ b/math/s_significandl.c @@ -27,12 +27,7 @@ static char rcsid[] = "$NetBSD: $"; #include <math.h> #include <math_private.h> -#ifdef __STDC__ - long double __significandl(long double x) -#else - long double __significandl(x) - long double x; -#endif +long double __significandl(long double x) { return __ieee754_scalbl(x,(long double) -__ilogbl(x)); } diff --git a/math/w_jnl.c b/math/w_jnl.c index 1dd9ae1517..148817ff44 100644 --- a/math/w_jnl.c +++ b/math/w_jnl.c @@ -47,12 +47,7 @@ static char rcsid[] = "$NetBSD: $"; #include <math.h> #include <math_private.h> -#ifdef __STDC__ - long double __jnl(int n, long double x) /* wrapper jnl */ -#else - long double __jnl(n,x) /* wrapper jnl */ - long double x; int n; -#endif +long double __jnl(int n, long double x) /* wrapper jnl */ { #ifdef _IEEE_LIBM return __ieee754_jnl(n,x); @@ -68,12 +63,7 @@ static char rcsid[] = "$NetBSD: $"; } weak_alias (__jnl, jnl) -#ifdef __STDC__ - long double __ynl(int n, long double x) /* wrapper ynl */ -#else - long double __ynl(n,x) /* wrapper ynl */ - long double x; int n; -#endif +long double __ynl(int n, long double x) /* wrapper ynl */ { #ifdef _IEEE_LIBM return __ieee754_ynl(n,x); |