about summary refs log tree commit diff
path: root/math/s_csinf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_csinf.c')
-rw-r--r--math/s_csinf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/s_csinf.c b/math/s_csinf.c
index 6c681898c1..daca6896b4 100644
--- a/math/s_csinf.c
+++ b/math/s_csinf.c
@@ -52,6 +52,9 @@ __csinf (__complex__ float x)
 	      cosix = 1.0f;
 	    }
 
+	  if (negate)
+	    sinix = -sinix;
+
 	  if (fabsf (__imag__ x) > t)
 	    {
 	      float exp_t = __ieee754_expf (t);
@@ -86,9 +89,6 @@ __csinf (__complex__ float x)
 	      __imag__ retval = __ieee754_sinhf (__imag__ x) * cosix;
 	    }
 
-	  if (negate)
-	    __real__ retval = -__real__ retval;
-
 	  if (fabsf (__real__ retval) < FLT_MIN)
 	    {
 	      volatile float force_underflow