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/softfloat Pull up following revisio...



details:   https://anonhg.NetBSD.org/src/rev/8268313c897a
branches:  netbsd-6
changeset: 775706:8268313c897a
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Feb 18 18:10:58 2013 +0000

description:
Pull up following revision(s) (requested by martin in ticket #825):
        lib/libc/arch/sparc64/softfloat/qp.c: revision 1.10
Make all conversions from 128bit (long double) floats to integral types
use rounding towards zero (casts to int/long are not affected by current
rounding mode).
Fixes PR port-sparc64/47535.

diffstat:

 lib/libc/arch/sparc64/softfloat/qp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8a852791dab7 -r 8268313c897a lib/libc/arch/sparc64/softfloat/qp.c
--- a/lib/libc/arch/sparc64/softfloat/qp.c      Mon Feb 18 18:10:25 2013 +0000
+++ b/lib/libc/arch/sparc64/softfloat/qp.c      Mon Feb 18 18:10:58 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qp.c,v 1.7 2008/04/28 20:22:57 martin Exp $ */
+/* $NetBSD: qp.c,v 1.7.24.1 2013/02/18 18:10:58 riz Exp $ */
 
 /*-
  * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -194,7 +194,7 @@
 int
 _Qp_qtoi(float128 *a)
 {
-       return float128_to_int32(*a);
+       return float128_to_int32_round_to_zero(*a);
 }
 
 
@@ -215,7 +215,7 @@
 unsigned int
 _Qp_qtoui(float128 *a)
 {
-       return (unsigned int)float128_to_int64(*a);
+       return (unsigned int)float128_to_int64_round_to_zero(*a);
 }
 
 



Home | Main Index | Thread Index | Old Index