about summary refs log tree commit diff
path: root/math/w_j1f.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_j1f.c')
-rw-r--r--math/w_j1f.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/w_j1f.c b/math/w_j1f.c
index bf7deb09f7..f70913d5ae 100644
--- a/math/w_j1f.c
+++ b/math/w_j1f.c
@@ -49,8 +49,11 @@ y1f (float x)
 	  return __kernel_standard_f (x, x, 111);
 	}
       else if (x == 0.0f)
-	/* d = -one/(x-x) */
-	return __kernel_standard_f (x, x, 110);
+	{
+	  /* d = -one/(x-x) */
+	  feraiseexcept (FE_DIVBYZERO);
+	  return __kernel_standard_f (x, x, 110);
+	}
       else if (_LIB_VERSION != _POSIX_)
 	/* y1(x>X_TLOSS) */
 	return __kernel_standard_f (x, x, 137);