summary refs log tree commit diff
path: root/math/s_csqrtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_csqrtf.c')
-rw-r--r--math/s_csqrtf.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/math/s_csqrtf.c b/math/s_csqrtf.c
index e433f476c2..597f0a224f 100644
--- a/math/s_csqrtf.c
+++ b/math/s_csqrtf.c
@@ -148,16 +148,8 @@ __csqrtf (__complex__ float x)
 	      s = __scalbnf (s, scale);
 	    }
 
-	  if (fabsf (r) < FLT_MIN)
-	    {
-	      float force_underflow = r * r;
-	      math_force_eval (force_underflow);
-	    }
-	  if (fabsf (s) < FLT_MIN)
-	    {
-	      float force_underflow = s * s;
-	      math_force_eval (force_underflow);
-	    }
+	  math_check_force_underflow (r);
+	  math_check_force_underflow (s);
 
 	  __real__ res = r;
 	  __imag__ res = __copysignf (s, __imag__ x);