summaryrefslogtreecommitdiff
path: root/libm/s_rint.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/s_rint.c')
-rw-r--r--libm/s_rint.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/libm/s_rint.c b/libm/s_rint.c
index d20f1bd3f..641e57571 100644
--- a/libm/s_rint.c
+++ b/libm/s_rint.c
@@ -1,4 +1,3 @@
-/* @(#)s_rint.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,10 +9,6 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: s_rint.c,v 1.8 1995/05/10 20:48:04 jtc Exp $";
-#endif
-
/*
* rint(x)
* Return x rounded to integral value according to the prevailing
@@ -27,22 +22,13 @@ static char rcsid[] = "$NetBSD: s_rint.c,v 1.8 1995/05/10 20:48:04 jtc Exp $";
#include "math.h"
#include "math_private.h"
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
TWO52[2]={
4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */
-4.50359962737049600000e+15, /* 0xC3300000, 0x00000000 */
};
-#ifdef __STDC__
- double rint(double x)
-#else
- double rint(x)
- double x;
-#endif
+double rint(double x)
{
int32_t i0,j0,sx;
u_int32_t i,i1;