about summary refs log tree commit diff
path: root/math/s_csinh.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_csinh.c')
-rw-r--r--math/s_csinh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/s_csinh.c b/math/s_csinh.c
index c607c2ad3e..d940c97493 100644
--- a/math/s_csinh.c
+++ b/math/s_csinh.c
@@ -52,6 +52,9 @@ __csinh (__complex__ double x)
 	      cosix = 1.0;
 	    }
 
+	  if (negate)
+	    cosix = -cosix;
+
 	  if (fabs (__real__ x) > t)
 	    {
 	      double exp_t = __ieee754_exp (t);
@@ -86,9 +89,6 @@ __csinh (__complex__ double x)
 	      __imag__ retval = __ieee754_cosh (__real__ x) * sinix;
 	    }
 
-	  if (negate)
-	    __real__ retval = -__real__ retval;
-
 	  if (fabs (__real__ retval) < DBL_MIN)
 	    {
 	      volatile double force_underflow