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-96/e_j1l.c | 2 +- sysdeps/ieee754/ldbl-96/e_jnl.c | 4 ++-- sysdeps/ieee754/ldbl-96/w_expl.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sysdeps/ieee754/ldbl-96') diff --git a/sysdeps/ieee754/ldbl-96/e_j1l.c b/sysdeps/ieee754/ldbl-96/e_j1l.c index 1adc8f669f..1bd54995a8 100644 --- a/sysdeps/ieee754/ldbl-96/e_j1l.c +++ b/sysdeps/ieee754/ldbl-96/e_j1l.c @@ -236,7 +236,7 @@ __ieee754_y1l (long double x) if (__glibc_unlikely (ix <= 0x3fbe)) { /* x < 2**-65 */ z = -tpi / x; - if (__isinfl (z)) + if (isinf (z)) __set_errno (ERANGE); return z; } diff --git a/sysdeps/ieee754/ldbl-96/e_jnl.c b/sysdeps/ieee754/ldbl-96/e_jnl.c index 95ff24201b..a6668089dd 100644 --- a/sysdeps/ieee754/ldbl-96/e_jnl.c +++ b/sysdeps/ieee754/ldbl-96/e_jnl.c @@ -378,7 +378,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; @@ -386,7 +386,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-96/w_expl.c b/sysdeps/ieee754/ldbl-96/w_expl.c index 0965e6236d..3cc165b39d 100644 --- a/sysdeps/ieee754/ldbl-96/w_expl.c +++ b/sysdeps/ieee754/ldbl-96/w_expl.c @@ -24,9 +24,9 @@ long double __expl (long double x) { long double z = __ieee754_expl (x); - if (__builtin_expect (!__finitel (z) || z == 0, 0) - && __finitel (x) && _LIB_VERSION != _IEEE_) - return __kernel_standard_l (x, x, 206 + !!__signbitl (x)); + if (__builtin_expect (!isfinite (z) || z == 0, 0) + && isfinite (x) && _LIB_VERSION != _IEEE_) + return __kernel_standard_l (x, x, 206 + !!signbit (x)); return z; } -- cgit 1.4.1