Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sparc64/softfloat Make all conversions from 12...
details: https://anonhg.NetBSD.org/src/rev/0b78901b075e
branches: trunk
changeset: 784954:0b78901b075e
user: martin <martin%NetBSD.org@localhost>
date: Fri Feb 15 09:24:05 2013 +0000
description:
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 a429fc0c9f72 -r 0b78901b075e lib/libc/arch/sparc64/softfloat/qp.c
--- a/lib/libc/arch/sparc64/softfloat/qp.c Fri Feb 15 07:59:36 2013 +0000
+++ b/lib/libc/arch/sparc64/softfloat/qp.c Fri Feb 15 09:24:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qp.c,v 1.9 2012/03/17 20:48:59 martin Exp $ */
+/* $NetBSD: qp.c,v 1.10 2013/02/15 09:24:05 martin 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