summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-10-27 20:02:59 +0000
committermiod <miod@openbsd.org>2007-10-27 20:02:59 +0000
commit83e18f2b48c524ab9bd7c7ac5343f8aa9ebe7ede (patch)
tree2fb581be5e91e4f219bdecf7b5ce9f77e8f2e824 /lib/libc
parentDon't do unecessary work in cpu_switchto(). (diff)
downloadwireguard-openbsd-83e18f2b48c524ab9bd7c7ac5343f8aa9ebe7ede.tar.xz
wireguard-openbsd-83e18f2b48c524ab9bd7c7ac5343f8aa9ebe7ede.zip
Repair FLT_ROUNDS operation. ok kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/sparc/gen/flt_rounds.c6
-rw-r--r--lib/libc/arch/sparc64/gen/flt_rounds.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/arch/sparc/gen/flt_rounds.c b/lib/libc/arch/sparc/gen/flt_rounds.c
index 89658d0ed59..f471067bcb9 100644
--- a/lib/libc/arch/sparc/gen/flt_rounds.c
+++ b/lib/libc/arch/sparc/gen/flt_rounds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flt_rounds.c,v 1.4 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: flt_rounds.c,v 1.5 2007/10/27 20:02:59 miod Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
* Public domain.
@@ -10,8 +10,8 @@
static const int map[] = {
1, /* round to nearest */
0, /* round to zero */
- 3, /* round to negative infinity */
- 2 /* round to positive infinity */
+ 2, /* round to positive infinity */
+ 3 /* round to negative infinity */
};
int
diff --git a/lib/libc/arch/sparc64/gen/flt_rounds.c b/lib/libc/arch/sparc64/gen/flt_rounds.c
index b8f0f69a2c2..7bc2ff3ed5c 100644
--- a/lib/libc/arch/sparc64/gen/flt_rounds.c
+++ b/lib/libc/arch/sparc64/gen/flt_rounds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flt_rounds.c,v 1.1 2001/08/29 01:45:24 art Exp $ */
+/* $OpenBSD: flt_rounds.c,v 1.2 2007/10/27 20:03:00 miod Exp $ */
/* $NetBSD: flt_rounds.c,v 1.1 1998/09/11 04:56:23 eeh Exp $ */
/*
@@ -12,8 +12,8 @@
static const int map[] = {
1, /* round to nearest */
0, /* round to zero */
- 3, /* round to negative infinity */
- 2 /* round to positive infinity */
+ 2, /* round to positive infinity */
+ 3 /* round to negative infinity */
};
int