From bc62c2fb152d6ffec63975d88fd8f1bc3d3b7c01 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 22 Oct 2011 00:32:39 -0400 Subject: Optimization to some complex math functions Also, change last reference to __sqrt into __sqrt to easily. --- math/s_ctan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'math/s_ctan.c') diff --git a/math/s_ctan.c b/math/s_ctan.c index 0dd211e907..41958516f1 100644 --- a/math/s_ctan.c +++ b/math/s_ctan.c @@ -30,7 +30,7 @@ __ctan (__complex__ double x) { __complex__ double res; - if (!isfinite (__real__ x) || !isfinite (__imag__ x)) + if (__builtin_expect (!isfinite (__real__ x) || !isfinite (__imag__ x), 0)) { if (__isinf_ns (__imag__ x)) { @@ -46,10 +46,8 @@ __ctan (__complex__ double x) __real__ res = __nan (""); __imag__ res = __nan (""); -#ifdef FE_INVALID if (__isinf_ns (__real__ x)) feraiseexcept (FE_INVALID); -#endif } } else -- cgit v1.2.3