Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/arch Fix sense of fegetexcept on x86.
details: https://anonhg.NetBSD.org/src/rev/d9c4faa95c0c
branches: trunk
changeset: 787001:d9c4faa95c0c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed May 29 00:53:19 2013 +0000
description:
Fix sense of fegetexcept on x86.
Somehow I overlooked this when I fixed feenableexcept and
fedisableexcept last summer.
XXX pullup to 6
diffstat:
lib/libm/arch/i387/fenv.c | 6 +++---
lib/libm/arch/x86_64/fenv.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r 1e9e68f2c6e8 -r d9c4faa95c0c lib/libm/arch/i387/fenv.c
--- a/lib/libm/arch/i387/fenv.c Wed May 29 00:47:48 2013 +0000
+++ b/lib/libm/arch/i387/fenv.c Wed May 29 00:53:19 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.4 2012/08/04 03:53:55 riastradh Exp $ */
+/* $NetBSD: fenv.c,v 1.5 2013/05/29 00:53:19 riastradh Exp $ */
/*-
* Copyright (c) 2004-2005 David Schultz <das%FreeBSD.ORG@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: fenv.c,v 1.4 2012/08/04 03:53:55 riastradh Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.5 2013/05/29 00:53:19 riastradh Exp $");
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -510,5 +510,5 @@
*/
__fnstcw(&control);
- return (control & FE_ALL_EXCEPT);
+ return (~control & FE_ALL_EXCEPT);
}
diff -r 1e9e68f2c6e8 -r d9c4faa95c0c lib/libm/arch/x86_64/fenv.c
--- a/lib/libm/arch/x86_64/fenv.c Wed May 29 00:47:48 2013 +0000
+++ b/lib/libm/arch/x86_64/fenv.c Wed May 29 00:53:19 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.2 2012/08/04 03:53:56 riastradh Exp $ */
+/* $NetBSD: fenv.c,v 1.3 2013/05/29 00:53:19 riastradh Exp $ */
/*-
* Copyright (c) 2004-2005 David Schultz <das (at) FreeBSD.ORG>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: fenv.c,v 1.2 2012/08/04 03:53:56 riastradh Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.3 2013/05/29 00:53:19 riastradh Exp $");
#include <assert.h>
#include <fenv.h>
@@ -519,6 +519,6 @@
*/
__fnstcw(&control);
- return (control & FE_ALL_EXCEPT);
+ return (~control & FE_ALL_EXCEPT);
}
Home |
Main Index |
Thread Index |
Old Index