/* 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 */
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