about summary refs log tree commit diff
path: root/math/s_ctan.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_ctan.c')
-rw-r--r--math/s_ctan.c4
1 files changed, 1 insertions, 3 deletions
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