summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/sparc
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/arch/sparc
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/arch/sparc')
-rw-r--r--lib/libc/arch/sparc/gen/flt_rounds.c6
1 files changed, 3 insertions, 3 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