summaryrefslogtreecommitdiff
path: root/libc/math/w_j0.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/math/w_j0.c')
-rw-r--r--libc/math/w_j0.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/math/w_j0.c b/libc/math/w_j0.c
index 53671c330..f7d4f2b12 100644
--- a/libc/math/w_j0.c
+++ b/libc/math/w_j0.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.
@@ -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);