diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-27 20:03:01 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-27 20:03:01 +0000 |
commit | 225137d131c37304b8cf51805e6eb0446fddfc30 (patch) | |
tree | 99dfc87a359e3b706b96eae92e38b4cbdb46870c /lib/libc | |
parent | 4249b70b71ec740aea0b459273821f9b352f43ff (diff) |
Repair FLT_ROUNDS operation. ok kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/arch/sparc/gen/flt_rounds.c | 6 | ||||
-rw-r--r-- | lib/libc/arch/sparc64/gen/flt_rounds.c | 6 |
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 |