Module Name: src Committed By: christos Date: Fri Oct 18 17:03:02 UTC 2013
Modified Files: src/lib/libm/arch/x86_64: fenv.c Log Message: use the masked variable To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libm/arch/x86_64/fenv.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libm/arch/x86_64/fenv.c diff -u src/lib/libm/arch/x86_64/fenv.c:1.4 src/lib/libm/arch/x86_64/fenv.c:1.5 --- src/lib/libm/arch/x86_64/fenv.c:1.4 Tue May 28 22:27:39 2013 +++ src/lib/libm/arch/x86_64/fenv.c Fri Oct 18 13:03:02 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.c,v 1.4 2013/05/29 02:27:39 riastradh Exp $ */ +/* $NetBSD: fenv.c,v 1.5 2013/10/18 17:03:02 christos 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.4 2013/05/29 02:27:39 riastradh Exp $"); +__RCSID("$NetBSD: fenv.c,v 1.5 2013/10/18 17:03:02 christos Exp $"); #include <assert.h> #include <fenv.h> @@ -181,7 +181,7 @@ feraiseexcept(int excepts) _DIAGASSERT((excepts & ~FE_ALL_EXCEPT) == 0); ex = excepts & FE_ALL_EXCEPT; - fesetexceptflag((unsigned int *)&excepts, excepts); + fesetexceptflag((unsigned int *)&ex, ex); __fwait(); /* Success */