about summary refs log tree commit diff
path: root/math/w_j0.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_j0.c')
-rw-r--r--math/w_j0.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/w_j0.c b/math/w_j0.c
index 53671c3306..0849abbc35 100644
--- a/math/w_j0.c
+++ b/math/w_j0.c
@@ -51,8 +51,11 @@ y0 (double x)
 	  return __kernel_standard (x, x, 9);
 	}
       else if (x == 0.0)
-	/* d = -one/(x-x) */
-	return __kernel_standard (x, x, 8);
+	{
+	  /* d = -one/(x-x) */
+	  feraiseexcept (FE_DIVBYZERO);
+	  return __kernel_standard (x, x, 8);
+	}
       else if (_LIB_VERSION != _POSIX_)
 	/* y0(x>X_TLOSS) */
 	return __kernel_standard (x, x, 35);