Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/lib/libc/arch/sparc64/gen Pull up following revision(s) (...
details: https://anonhg.NetBSD.org/src/rev/8a852791dab7
branches: netbsd-6
changeset: 775705:8a852791dab7
user: riz <riz%NetBSD.org@localhost>
date: Mon Feb 18 18:10:25 2013 +0000
description:
Pull up following revision(s) (requested by martin in ticket #826):
lib/libc/arch/sparc64/gen/fpsetround.c: revision 1.6
While we are using softfloat for 128 bit long double values, make fpsetround
update the softfloat rounding mode as well.
diffstat:
lib/libc/arch/sparc64/gen/fpsetround.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r ffecf77b1dc4 -r 8a852791dab7 lib/libc/arch/sparc64/gen/fpsetround.c
--- a/lib/libc/arch/sparc64/gen/fpsetround.c Mon Feb 18 18:05:29 2013 +0000
+++ b/lib/libc/arch/sparc64/gen/fpsetround.c Mon Feb 18 18:10:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetround.c,v 1.4 2005/12/24 23:10:08 perry Exp $ */
+/* $NetBSD: fpsetround.c,v 1.4.46.1 2013/02/18 18:10:25 riz Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetround.c,v 1.4 2005/12/24 23:10:08 perry Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.4.46.1 2013/02/18 18:10:25 riz Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -24,9 +24,16 @@
{
fp_rnd old;
fp_rnd new;
+#ifdef SOFTFLOATSPARC64_FOR_GCC
+ extern fp_rnd _softfloat_float_rounding_mode;
+#endif
__asm("st %%fsr,%0" : "=m" (*&old));
+#ifdef SOFTFLOATSPARC64_FOR_GCC
+ _softfloat_float_rounding_mode = rnd_dir;
+#endif
+
new = old;
new &= ~(0x03 << 30);
new |= ((rnd_dir & 0x03) << 30);
Home |
Main Index |
Thread Index |
Old Index