diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-03 14:42:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-03 14:42:54 +0000 |
commit | eb51bac1b3f43c4fcccdf8206afb8a070fecaa07 (patch) | |
tree | 5253e96ffffa5ee3d72ccbd92f47fbf7d16d2264 /libm/e_scalb.c | |
parent | 33836c9854b39638a8460bdf5e7d761bb5d1e6ae (diff) |
libm/e_scalb.c: remove unused #ifdef _SCALB_INT branches
libm/s_ldexp.c: add TODO
Diffstat (limited to 'libm/e_scalb.c')
-rw-r--r-- | libm/e_scalb.c | 13 |
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 |