summaryrefslogtreecommitdiffstats
path: root/libm/w_scalb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/w_scalb.c')
-rw-r--r--libm/w_scalb.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/libm/w_scalb.c b/libm/w_scalb.c
index a770877ea..0e3475131 100644
--- a/libm/w_scalb.c
+++ b/libm/w_scalb.c
@@ -1,4 +1,3 @@
-/* @(#)w_scalb.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,10 +9,6 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: w_scalb.c,v 1.6 1995/05/10 20:49:48 jtc Exp $";
-#endif
-
/*
* wrapper scalb(double x, double fn) is provide for
* passing various standard test suite. One
@@ -25,19 +20,10 @@ static char rcsid[] = "$NetBSD: w_scalb.c,v 1.6 1995/05/10 20:49:48 jtc Exp $";
#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
+double scalb(double x, int fn) /* wrapper scalb */
#else
- double scalb(x,fn) /* wrapper scalb */
-#ifdef _SCALB_INT
- double x; int fn;
-#else
- double x,fn;
-#endif
+double scalb(double x, double fn) /* wrapper scalb */
#endif
{
#ifdef _IEEE_LIBM
@@ -46,16 +32,15 @@ static char rcsid[] = "$NetBSD: w_scalb.c,v 1.6 1995/05/10 20:49:48 jtc Exp $";
double z;
z = __ieee754_scalb(x,fn);
if(_LIB_VERSION == _IEEE_) return z;
- if(!(finite(z)||isnan(z))&&finite(x)) {
+ if(!(isfinite(z)||isnan(z))&&isfinite(x)) {
return __kernel_standard(x,(double)fn,32); /* scalb overflow */
}
if(z==0.0&&z!=x) {
return __kernel_standard(x,(double)fn,33); /* scalb underflow */
}
#ifndef _SCALB_INT
- if(!finite(fn)) errno = ERANGE;
+ if(!isfinite(fn)) errno = ERANGE;
#endif
return z;
#endif
}
-libm_hidden_def(scalb)