diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-02-14 03:55:33 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-02-19 19:25:47 +0100 |
commit | abfbe76cb5adff2e7c9ddd4dc10c3dcc641d8949 (patch) | |
tree | ffd280132ba5cd871c17b6d5ceae239e60de9932 /libm/e_scalb.c | |
parent | 337531c6d5d2b3f04711933ac12432c1fa3f3254 (diff) |
libm: remove dead code
_IEEE_LIBM is always defined, so the other code is never
used. I don't know when it was actively used.
Diffstat (limited to 'libm/e_scalb.c')
-rw-r--r-- | libm/e_scalb.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libm/e_scalb.c b/libm/e_scalb.c index 9e1a3f742..cc85b48d3 100644 --- a/libm/e_scalb.c +++ b/libm/e_scalb.c @@ -33,28 +33,6 @@ double __ieee754_scalb(double x, double fn) } #if defined __UCLIBC_SUSV3_LEGACY__ -/* - * wrapper scalb(double x, double fn) is provided for - * passing various standard test suites. - * One should use scalbn() instead. - */ -#ifndef _IEEE_LIBM -double scalb(double x, double fn) -{ - double z = __ieee754_scalb(x, fn); - if (_LIB_VERSION == _IEEE_) - return z; - 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 */ - if (!isfinite(fn)) - errno = ERANGE; - return z; -} -#else strong_alias(__ieee754_scalb, scalb) -#endif libm_hidden_def(scalb) - #endif /* UCLIBC_SUSV3_LEGACY */ |