summaryrefslogtreecommitdiff
path: root/lib/libm/arch/hppa/s_rint.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/arch/hppa/s_rint.c')
-rw-r--r--lib/libm/arch/hppa/s_rint.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libm/arch/hppa/s_rint.c b/lib/libm/arch/hppa/s_rint.c
index e25f7291e6b..1f06be47f36 100644
--- a/lib/libm/arch/hppa/s_rint.c
+++ b/lib/libm/arch/hppa/s_rint.c
@@ -3,10 +3,12 @@
*/
#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: s_rint.c,v 1.2 2002/09/11 15:16:52 mickey Exp $";
+static char rcsid[] = "$OpenBSD: s_rint.c,v 1.3 2008/12/09 20:00:35 martynas Exp $";
#endif
-#include "math.h"
+#include <machine/cdefs.h>
+#include <float.h>
+#include <math.h>
double
rint(double x)
@@ -15,3 +17,9 @@ rint(double x)
return (x);
}
+
+#if LDBL_MANT_DIG == 53
+#ifdef __weak_alias
+__weak_alias(rintl, rint);
+#endif /* __weak_alias */
+#endif /* LDBL_MANT_DIG == 53 */