summaryrefslogtreecommitdiff
path: root/libm/e_scalb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/e_scalb.c')
-rw-r--r--libm/e_scalb.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libm/e_scalb.c b/libm/e_scalb.c
index ff0c77523..7e6768810 100644
--- a/libm/e_scalb.c
+++ b/libm/e_scalb.c
@@ -19,16 +19,9 @@
#include "math_private.h"
#include <errno.h>
-#ifdef _SCALB_INT
-double attribute_hidden __ieee754_scalb(double x, int fn)
-#else
double attribute_hidden __ieee754_scalb(double x, double fn)
-#endif
{
-#ifdef _SCALB_INT
return scalbn(x,fn);
-//TODO: just alias it to scalbn?
-#else
if (isnan(x)||isnan(fn)) return x*fn;
if (!isfinite(fn)) {
if(fn>0.0) return x*fn;
@@ -48,11 +41,7 @@ double attribute_hidden __ieee754_scalb(double x, double fn)
* should use scalbn() instead.
*/
#ifndef _IEEE_LIBM
-# ifdef _SCALB_INT
-double scalb(double x, int fn)
-# else
double scalb(double x, double fn)
-# endif
{
double z = __ieee754_scalb(x, fn);
if (_LIB_VERSION == _IEEE_)
@@ -61,10 +50,8 @@ double scalb(double x, double fn)
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 (!isfinite(fn))
errno = ERANGE;
-# endif
return z;
}
#else