Module Name:    src
Committed By:   martin
Date:           Sat Dec 27 17:52:45 UTC 2014

Modified Files:
        src/lib/libm/arch/aarch64: fenv.c

Log Message:
Fix consistent typo: it is FE_ALL_EXCEPT instead of FE_EXCEPT_ALL (this
went unnoticed as the undefined macro evaluated to 0 and the expression
was always used with ~)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/arch/aarch64/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/aarch64/fenv.c
diff -u src/lib/libm/arch/aarch64/fenv.c:1.1 src/lib/libm/arch/aarch64/fenv.c:1.2
--- src/lib/libm/arch/aarch64/fenv.c:1.1	Sun Aug 10 05:47:37 2014
+++ src/lib/libm/arch/aarch64/fenv.c	Sat Dec 27 17:52:45 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.1 2014/08/10 05:47:37 matt Exp $ */
+/* $NetBSD: fenv.c,v 1.2 2014/12/27 17:52:45 martin Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: fenv.c,v 1.1 2014/08/10 05:47:37 matt Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.2 2014/12/27 17:52:45 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -55,7 +55,7 @@ int
 feclearexcept(int excepts)
 {
 #ifndef lint
-	_DIAGASSERT((except & ~FE_EXCEPT_ALL) == 0);
+	_DIAGASSERT((except & ~FE_ALL_EXCEPT) == 0);
 #endif
 	unsigned int tmp = reg_fpsr_read() & ~__SHIFTIN(excepts, FPSR_CSUM);
 	reg_fpsr_write(tmp);
@@ -71,7 +71,7 @@ feclearexcept(int excepts)
 int
 fegetexceptflag(fexcept_t *flagp, int excepts)
 {
-	_DIAGASSERT((except & ~FE_EXCEPT_ALL) == 0);
+	_DIAGASSERT((except & ~FE_ALL_EXCEPT) == 0);
 	*flagp = __SHIFTOUT(reg_fpsr_read(), FPSR_CSUM) & excepts;
 	return 0;
 }
@@ -85,7 +85,7 @@ int
 feraiseexcept(int excepts)
 {
 #ifndef lint
-	_DIAGASSERT((except & ~FE_EXCEPT_ALL) == 0);
+	_DIAGASSERT((except & ~FE_ALL_EXCEPT) == 0);
 #endif
 #ifdef __SOFTFP__
 	excepts &= fpgetsticky();
@@ -132,7 +132,7 @@ int
 fesetexceptflag(const fexcept_t *flagp, int excepts)
 {
 #ifndef lint
-	_DIAGASSERT((except & ~FE_EXCEPT_ALL) == 0);
+	_DIAGASSERT((except & ~FE_ALL_EXCEPT) == 0);
 #endif
 	unsigned int fpsr = reg_fpsr_read();
 	fpsr &= ~__SHIFTIN(excepts, FPSR_CSUM);
@@ -149,7 +149,7 @@ fesetexceptflag(const fexcept_t *flagp, 
 int
 fetestexcept(int excepts)
 {
-	_DIAGASSERT((except & ~FE_EXCEPT_ALL) == 0);
+	_DIAGASSERT((except & ~FE_ALL_EXCEPT) == 0);
 	return __SHIFTOUT(reg_fpsr_read(), FPSR_CSUM) & excepts;
 }
 

Reply via email to