]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_j1f.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / math / w_j1f.c
index 29bd949eeabc3abccca97190448727e7922ad9ca..159b8415d340628e08cb4a271ba314d5a5d8c9f4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2015 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gmail.com>, 2011.
 
@@ -26,7 +26,7 @@ float
 j1f (float x)
 {
   if (__builtin_expect (isgreater (fabsf (x), X_TLOSS), 0)
-      && _LIB_VERSION != _IEEE_)
+      && _LIB_VERSION != _IEEE_ && _LIB_VERSION != _POSIX_)
     /* j1(|x|>X_TLOSS) */
     return __kernel_standard_f (x, x, 136);
 
@@ -49,9 +49,12 @@ 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);
-      else
+       {
+         /* 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);
     }