From 83e18f2b48c524ab9bd7c7ac5343f8aa9ebe7ede Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 27 Oct 2007 20:02:59 +0000 Subject: Repair FLT_ROUNDS operation. ok kettenis@ --- lib/libc/arch/sparc/gen/flt_rounds.c | 6 +++--- lib/libc/arch/sparc64/gen/flt_rounds.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/libc') 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 -- cgit v1.2.3-59-g8ed1b