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 Add missing return in __SOFTFP__ variant, ...
details: https://anonhg.NetBSD.org/src/rev/71a5c17a6750
branches: trunk
changeset: 335157:71a5c17a6750
user: martin <martin%NetBSD.org@localhost>
date: Sun Dec 28 10:15:29 2014 +0000
description:
Add missing return in __SOFTFP__ variant, pointed out by htodd.
diffstat:
lib/libm/arch/arm/fenv.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r d52bcdef0b32 -r 71a5c17a6750 lib/libm/arch/arm/fenv.c
--- a/lib/libm/arch/arm/fenv.c Sun Dec 28 05:10:06 2014 +0000
+++ b/lib/libm/arch/arm/fenv.c Sun Dec 28 10:15:29 2014 +0000
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: fenv.c,v 1.4 2014/12/27 17:54:24 martin Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.5 2014/12/28 10:15:29 martin Exp $");
#include <sys/types.h>
#include <assert.h>
@@ -162,6 +162,7 @@
#ifdef __SOFTFP__
int old = fpgetsticky();
fpsetsticky(old | excepts);
+ return old;
#else
int fpscr = armreg_fpscr_read();
armreg_fpscr_write(fpscr | __SHIFTIN((excepts), VFP_FPSCR_CSUM));
Home |
Main Index |
Thread Index |
Old Index