summaryrefslogtreecommitdiff
path: root/lib/libc/arch/m88k/gen/flt_rounds.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-01-07 21:59:50 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-01-07 21:59:50 +0000
commit8f759e142b2785012497ff19ebb85071c95dc65e (patch)
treeee4187bfd0689d7112d1c7fb460800052ff36a92 /lib/libc/arch/m88k/gen/flt_rounds.c
parentdef34f8cd8149a9fdf16a275ec51922ac6a1f6c2 (diff)
Get the rounding modes table correct, eventually.
Diffstat (limited to 'lib/libc/arch/m88k/gen/flt_rounds.c')
-rw-r--r--lib/libc/arch/m88k/gen/flt_rounds.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/libc/arch/m88k/gen/flt_rounds.c b/lib/libc/arch/m88k/gen/flt_rounds.c
index c3f6e4f2c58..c821bea75c2 100644
--- a/lib/libc/arch/m88k/gen/flt_rounds.c
+++ b/lib/libc/arch/m88k/gen/flt_rounds.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: flt_rounds.c,v 1.2 2003/01/07 21:59:49 miod Exp $ */
+
/*
* Written by J.T. Conklin, Apr 10, 1995
* Public domain.
@@ -6,15 +8,19 @@
#include <sys/types.h>
#include <machine/float.h>
+#if defined(LIBC_SCCS) && !defined(lint)
+static char rcsid[] = "$OpenBSD: flt_rounds.c,v 1.2 2003/01/07 21:59:49 miod Exp $";
+#endif /* LIBC_SCCS and not lint */
+
/*
* Ported to 88k (Nivas Madhur)
*/
static const int map[] = {
- 0, /* round to nearest */
- 1, /* round to zero */
- 2, /* round to negative infinity */
- 3 /* round to positive infinity */
+ 1, /* round to nearest */
+ 0, /* round to zero */
+ 3, /* round to negative infinity */
+ 2 /* round to positive infinity */
};
int