summaryrefslogtreecommitdiff
path: root/libc/math/w_j0f.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/math/w_j0f.c')
-rw-r--r--libc/math/w_j0f.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/math/w_j0f.c b/libc/math/w_j0f.c
index c9a6c53ff..152a257c6 100644
--- a/libc/math/w_j0f.c
+++ b/libc/math/w_j0f.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gmail.com>, 2011.
@@ -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);