summaryrefslogtreecommitdiff
path: root/lib/libm/noieee_src/n_floor.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-06-21 08:26:20 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-06-21 08:26:20 +0000
commitda0db31a60ab89941238c857fbbe25284941857f (patch)
treee99f3a4def6f12c36c853509c8b60e0ab3999ee0 /lib/libm/noieee_src/n_floor.c
parent0d378bf6f459984aa2f7ca84f810d5d98e8f8f15 (diff)
cleaning up, no functional changes
- no support for National 32000, removing ns32000/national ifdefs maze - remove tahoe defs - ansify looks fine to millert@; who also noticed rint removal
Diffstat (limited to 'lib/libm/noieee_src/n_floor.c')
-rw-r--r--lib/libm/noieee_src/n_floor.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/libm/noieee_src/n_floor.c b/lib/libm/noieee_src/n_floor.c
index 731263e53aa..7eeda6ceaa0 100644
--- a/lib/libm/noieee_src/n_floor.c
+++ b/lib/libm/noieee_src/n_floor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_floor.c,v 1.6 2008/06/12 22:43:36 martynas Exp $ */
+/* $OpenBSD: n_floor.c,v 1.7 2008/06/21 08:26:19 martynas Exp $ */
/* $NetBSD: n_floor.c,v 1.1 1995/10/10 23:36:48 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -52,8 +52,7 @@ ic(L, 4503599627370496.0E0, 52, 1.0) /* 2**52 */
* customary for IEEE 754. No other signal can be emitted.
*/
double
-floor(x)
-double x;
+floor(double x)
{
volatile double y;
@@ -69,8 +68,7 @@ double x;
}
double
-ceil(x)
-double x;
+ceil(double x)
{
volatile double y;
@@ -85,7 +83,6 @@ double x;
}
}
-#ifndef ns32000 /* rint() is in ./NATIONAL/support.s */
/*
* algorithm for rint(x) in pseudo-pascal form ...
*
@@ -108,8 +105,7 @@ double x;
* customary for IEEE 754. No other signal can be emitted.
*/
double
-rint(x)
-double x;
+rint(double x)
{
double s;
volatile double t;
@@ -125,4 +121,3 @@ double x;
t = x + s; /* x+s rounded to integer */
return (t - s);
}
-#endif /* not national */