From d81f90ccd0109de9ed78aeeb8d86e2c6d4600690 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Wed, 3 Jun 2015 15:36:34 +0100 Subject: This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. --- sysdeps/ieee754/ldbl-128/e_exp10l.c | 2 +- sysdeps/ieee754/ldbl-128/e_expl.c | 2 +- sysdeps/ieee754/ldbl-128/e_j0l.c | 4 ++-- sysdeps/ieee754/ldbl-128/e_j1l.c | 6 +++--- sysdeps/ieee754/ldbl-128/e_jnl.c | 4 ++-- sysdeps/ieee754/ldbl-128/e_lgammal_r.c | 4 ++-- sysdeps/ieee754/ldbl-128/s_cbrtl.c | 2 +- sysdeps/ieee754/ldbl-128/w_expl.c | 6 +++--- 8 files changed, 15 insertions(+), 15 deletions(-) (limited to 'sysdeps/ieee754/ldbl-128') diff --git a/sysdeps/ieee754/ldbl-128/e_exp10l.c b/sysdeps/ieee754/ldbl-128/e_exp10l.c index d3120ad841..c5b5cb7505 100644 --- a/sysdeps/ieee754/ldbl-128/e_exp10l.c +++ b/sysdeps/ieee754/ldbl-128/e_exp10l.c @@ -29,7 +29,7 @@ __ieee754_exp10l (long double arg) long double arg_high, arg_low; long double exp_high, exp_low; - if (!__finitel (arg)) + if (!isfinite (arg)) return __ieee754_expl (arg); if (arg < LDBL_MIN_10_EXP - LDBL_DIG - 10) return LDBL_MIN * LDBL_MIN; diff --git a/sysdeps/ieee754/ldbl-128/e_expl.c b/sysdeps/ieee754/ldbl-128/e_expl.c index 315666ce5f..b4b789658a 100644 --- a/sysdeps/ieee754/ldbl-128/e_expl.c +++ b/sysdeps/ieee754/ldbl-128/e_expl.c @@ -235,7 +235,7 @@ __ieee754_expl (long double x) /* Exceptional cases: */ else if (isless (x, himark)) { - if (__isinfl (x)) + if (isinf (x)) /* e^-inf == 0, with no error. */ return 0; else diff --git a/sysdeps/ieee754/ldbl-128/e_j0l.c b/sysdeps/ieee754/ldbl-128/e_j0l.c index 108eff4435..1320de7044 100644 --- a/sysdeps/ieee754/ldbl-128/e_j0l.c +++ b/sysdeps/ieee754/ldbl-128/e_j0l.c @@ -680,7 +680,7 @@ __ieee754_j0l (long double x) { long double xx, xinv, z, p, q, c, s, cc, ss; - if (! __finitel (x)) + if (! isfinite (x)) { if (x != x) return x; @@ -826,7 +826,7 @@ long double { long double xx, xinv, z, p, q, c, s, cc, ss; - if (! __finitel (x)) + if (! isfinite (x)) { if (x != x) return x; diff --git a/sysdeps/ieee754/ldbl-128/e_j1l.c b/sysdeps/ieee754/ldbl-128/e_j1l.c index f24dfa9f8b..958077d927 100644 --- a/sysdeps/ieee754/ldbl-128/e_j1l.c +++ b/sysdeps/ieee754/ldbl-128/e_j1l.c @@ -687,7 +687,7 @@ __ieee754_j1l (long double x) { long double xx, xinv, z, p, q, c, s, cc, ss; - if (! __finitel (x)) + if (! isfinite (x)) { if (x != x) return x; @@ -838,7 +838,7 @@ __ieee754_y1l (long double x) { long double xx, xinv, z, p, q, c, s, cc, ss; - if (! __finitel (x)) + if (! isfinite (x)) { if (x != x) return x; @@ -855,7 +855,7 @@ __ieee754_y1l (long double x) if (xx <= 0x1p-114) { z = -TWOOPI / x; - if (__isinfl (z)) + if (isinf (z)) __set_errno (ERANGE); return z; } diff --git a/sysdeps/ieee754/ldbl-128/e_jnl.c b/sysdeps/ieee754/ldbl-128/e_jnl.c index 4e32d38581..422623f0dc 100644 --- a/sysdeps/ieee754/ldbl-128/e_jnl.c +++ b/sysdeps/ieee754/ldbl-128/e_jnl.c @@ -393,7 +393,7 @@ __ieee754_ynl (int n, long double x) } } /* If B is +-Inf, set up errno accordingly. */ - if (! __finitel (b)) + if (! isfinite (b)) __set_errno (ERANGE); if (sign > 0) ret = b; @@ -401,7 +401,7 @@ __ieee754_ynl (int n, long double x) ret = -b; } out: - if (__isinfl (ret)) + if (isinf (ret)) ret = __copysignl (LDBL_MAX, ret) * LDBL_MAX; return ret; } diff --git a/sysdeps/ieee754/ldbl-128/e_lgammal_r.c b/sysdeps/ieee754/ldbl-128/e_lgammal_r.c index 35d4a663ff..d8a5e5b9ec 100644 --- a/sysdeps/ieee754/ldbl-128/e_lgammal_r.c +++ b/sysdeps/ieee754/ldbl-128/e_lgammal_r.c @@ -770,12 +770,12 @@ __ieee754_lgammal_r (long double x, int *signgamp) *signgamp = 1; - if (! __finitel (x)) + if (! isfinite (x)) return x * x; if (x == 0.0L) { - if (__signbitl (x)) + if (signbit (x)) *signgamp = -1; } diff --git a/sysdeps/ieee754/ldbl-128/s_cbrtl.c b/sysdeps/ieee754/ldbl-128/s_cbrtl.c index 07ed567e4d..c3ae96830e 100644 --- a/sysdeps/ieee754/ldbl-128/s_cbrtl.c +++ b/sysdeps/ieee754/ldbl-128/s_cbrtl.c @@ -69,7 +69,7 @@ __cbrtl (long double x) int e, rem, sign; long double z; - if (!__finitel (x)) + if (!isfinite (x)) return x + x; if (x == 0) diff --git a/sysdeps/ieee754/ldbl-128/w_expl.c b/sysdeps/ieee754/ldbl-128/w_expl.c index f0b1f8e55f..c32616e504 100644 --- a/sysdeps/ieee754/ldbl-128/w_expl.c +++ b/sysdeps/ieee754/ldbl-128/w_expl.c @@ -31,9 +31,9 @@ long double __expl(long double x) /* wrapper exp */ return __ieee754_expl(x); #else long double z = __ieee754_expl (x); - if (__glibc_unlikely (!__finitel (z) || z == 0) - && __finitel (x) && _LIB_VERSION != _IEEE_) - return __kernel_standard_l (x, x, 206 + !!__signbitl (x)); + if (__glibc_unlikely (!isfinite (z) || z == 0) + && isfinite (x) && _LIB_VERSION != _IEEE_) + return __kernel_standard_l (x, x, 206 + !!signbit (x)); return z; #endif -- cgit 1.4.1