summaryrefslogtreecommitdiff
path: root/math/w_j0f.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_j0f.c')
-rw-r--r--math/w_j0f.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/w_j0f.c b/math/w_j0f.c
index c9a6c53fff..ef309d2092 100644
--- a/math/w_j0f.c
+++ b/math/w_j0f.c
@@ -49,8 +49,11 @@ y0f (float x)
return __kernel_standard_f (x, x, 109);
}
else if (x == 0.0f)
- /* d = -one/(x-x) */
- return __kernel_standard_f (x, x, 108);
+ {
+ /* d = -one/(x-x) */
+ feraiseexcept (FE_DIVBYZERO);
+ return __kernel_standard_f (x, x, 108);
+ }
else if (_LIB_VERSION != _POSIX_)
/* y0(x>X_TLOSS) */
return __kernel_standard_f (x, x, 135);