Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/arch/arm Fix feclearexcept return value (should be 0).
details: https://anonhg.NetBSD.org/src/rev/6eece22ed846
branches: trunk
changeset: 786538:6eece22ed846
user: matt <matt%NetBSD.org@localhost>
date: Wed May 01 04:04:54 2013 +0000
description:
Fix feclearexcept return value (should be 0).
diffstat:
lib/libm/arch/arm/fenv.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 3940222da022 -r 6eece22ed846 lib/libm/arch/arm/fenv.c
--- a/lib/libm/arch/arm/fenv.c Wed May 01 04:04:31 2013 +0000
+++ b/lib/libm/arch/arm/fenv.c Wed May 01 04:04:54 2013 +0000
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: fenv.c,v 1.2 2013/04/30 01:45:13 matt Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.3 2013/05/01 04:04:54 matt Exp $");
#include <sys/types.h>
#include <assert.h>
@@ -60,12 +60,12 @@
_DIAGASSERT((except & ~FE_EXCEPT_ALL) == 0);
#endif
#ifdef __SOFTFP__
- int old = fpresetsticky(excepts);
- return old & ~excepts;
+ fpsetsticky(fpgetsticky() & ~excepts);
+ return 0;
#else
int tmp = armreg_fpscr_read() & ~__SHIFTIN(excepts, VFP_FPSCR_CSUM);
armreg_fpscr_write(tmp);
- return __SHIFTOUT(tmp, VFP_FPSCR_CSUM);
+ return 0;
#endif
}
Home |
Main Index |
Thread Index |
Old Index