]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/ieee754/k_standardl.c
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / ieee754 / k_standardl.c
index 0f3b760431f12293bba7b599dfca6ecbf5885eff..270ab74442dbeaae416072f1941092cdcb8d4bec 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement __kernel_standard_l.
-   Copyright (C) 2012-2018 Free Software Foundation, Inc.
+   Copyright (C) 2012-2021 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -14,7 +14,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.
+   <https://www.gnu.org/licenses/>.
 
    Parts based on k_standard.c from fdlibm: */
 
@@ -31,7 +31,7 @@
  */
 
 #include <math.h>
-#include <math_private.h>
+#include <math-barriers.h>
 #include <math-svid-compat.h>
 #include <fenv.h>
 #include <float.h>
@@ -72,14 +72,14 @@ __kernel_standard_l (long double x, long double y, int type)
        {
          exc.retval = HUGE;
          y *= 0.5;
-         if (x < zero && __rintl (y) != y)
+         if (x < zero && rintl (y) != y)
            exc.retval = -HUGE;
        }
       else
        {
          exc.retval = HUGE_VAL;
          y *= 0.5;
-         if (x < zero && __rintl (y) != y)
+         if (x < zero && rintl (y) != y)
            exc.retval = -HUGE_VAL;
        }
       if (_LIB_VERSION == _POSIX_)
@@ -96,7 +96,7 @@ __kernel_standard_l (long double x, long double y, int type)
       exc.name = (char *) "powl";
       exc.retval = zero;
       y *= 0.5;
-      if (x < zero && __rintl (y) != y)
+      if (x < zero && rintl (y) != y)
        exc.retval = -zero;
       if (_LIB_VERSION == _POSIX_)
        __set_errno (ERANGE);