]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S
Update copyright notices with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / sparc / sparc32 / sparcv9 / fpu / s_rint.S
index 8cae9b8ba74a17dd3cb748f6db06024d7fdeadc5..e7db7989cab87efcf1cb3babfcf605e9e041a1b5 100644 (file)
@@ -1,5 +1,5 @@
 /* Round float to int floating-point values, sparc32 v9 version.
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2012-2014 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David S. Miller <davem@davemloft.net>, 2012.
 
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
+#include <math_ldbl_opt.h>
 
        /* We pop constants into the FPU registers using the incoming
-        * argument stack slots, since this avoid having to use any PIC
-        * references.  We also thus avoid having to allocate a register
-        * window.
-        *
-        * VIS instructions are used to facilitate the formation of
-        * easier constants, and the propagation of the sign bit.
-        */
+          argument stack slots, since this avoid having to use any PIC
+          references.  We also thus avoid having to allocate a register
+          window.
+
+          VIS instructions are used to facilitate the formation of
+          easier constants, and the propagation of the sign bit.  */
 
 #define TWO_FIFTYTWO   0x43300000              /* 2**52 */
 
@@ -63,3 +63,7 @@ ENTRY (__rint)
         for    %f0, SIGN_BIT, %f0
 END (__rint)
 weak_alias (__rint, rint)
+
+#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
+compat_symbol (libm, __rint, rintl, GLIBC_2_0)
+#endif