* [Patch, libquadmath, committed] PR 55462 - rounding fix
@ 2012-11-25 20:01 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2012-11-25 20:01 UTC (permalink / raw)
To: gcc patches
[-- Attachment #1: Type: text/plain, Size: 118 bytes --]
Committed as Rev. 193796. I forgot to change the condition after
changing how the rounding mode is detected.
Tobias
[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 1213 bytes --]
Index: libquadmath/ChangeLog
===================================================================
--- libquadmath/ChangeLog (Revision 193792)
+++ libquadmath/ChangeLog (Arbeitskopie)
@@ -1,3 +1,9 @@
+2012-11-25 Tobias Burnus <burnus@net-b.de>
+
+ PR libquadmath/55462
+ * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H
+ instead of nonexisting HAVE_GET_ROUNDING_MODE.
+
2012-11-23 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/55455
Index: libquadmath/strtod/strtod_l.c
===================================================================
--- libquadmath/strtod/strtod_l.c (Revision 193792)
+++ libquadmath/strtod/strtod_l.c (Arbeitskopie)
@@ -223,7 +223,7 @@ round_and_return (mp_limb_t *retval, intmax_t expo
}
else if (shift > 0)
{
-#ifdef HAVE_GET_ROUNDING_MODE
+#ifdef HAVE_FENV_H
if (TININESS_AFTER_ROUNDING && shift == 1)
{
/* Whether the result counts as tiny depends on whether,
@@ -279,7 +279,7 @@ round_and_return (mp_limb_t *retval, intmax_t expo
if (exponent > MAX_EXP)
goto overflow;
-#ifdef HAVE_GET_ROUNDING_MODE
+#ifdef HAVE_FENV_H
if (round_away (negative,
(retval[0] & 1) != 0,
(round_limb & (((mp_limb_t) 1) << round_bit)) != 0,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-25 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-25 20:01 [Patch, libquadmath, committed] PR 55462 - rounding fix Tobias Burnus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).