From 7edb55ce06ab1fa716a062cd1cb6682585bb449d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 8 Oct 2011 10:18:26 -0400 Subject: Optimize use of isnan, isinf, finite --- math/s_ctanh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'math/s_ctanh.c') diff --git a/math/s_ctanh.c b/math/s_ctanh.c index 60a52dbdb7..f4a1d7e450 100644 --- a/math/s_ctanh.c +++ b/math/s_ctanh.c @@ -1,5 +1,5 @@ /* Complex hyperbole tangent for double. - Copyright (C) 1997, 2005 Free Software Foundation, Inc. + Copyright (C) 1997, 2005, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -32,7 +32,7 @@ __ctanh (__complex__ double x) if (!isfinite (__real__ x) || !isfinite (__imag__ x)) { - if (__isinf (__real__ x)) + if (__isinf_ns (__real__ x)) { __real__ res = __copysign (1.0, __real__ x); __imag__ res = __copysign (0.0, __imag__ x); @@ -47,7 +47,7 @@ __ctanh (__complex__ double x) __imag__ res = __nan (""); #ifdef FE_INVALID - if (__isinf (__imag__ x)) + if (__isinf_ns (__imag__ x)) feraiseexcept (FE_INVALID); #endif } -- cgit v1.2.1