Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gdtoa Fix this so that it builds for vax; where the...
details: https://anonhg.NetBSD.org/src/rev/53c5e0f5513c
branches: trunk
changeset: 763599:53c5e0f5513c
user: he <he%NetBSD.org@localhost>
date: Sun Mar 27 11:21:54 2011 +0000
description:
Fix this so that it builds for vax; where the compiler balks at the
mixture of a union and a double in an expression (imagine that!)
I see other similar uses, and how they pass through for other ports
is beyond me, but I have not touched them in this round.
OK'ed by christos@
diffstat:
lib/libc/gdtoa/strtod.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d49bf54760c1 -r 53c5e0f5513c lib/libc/gdtoa/strtod.c
--- a/lib/libc/gdtoa/strtod.c Sun Mar 27 08:53:56 2011 +0000
+++ b/lib/libc/gdtoa/strtod.c Sun Mar 27 11:21:54 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strtod.c,v 1.7 2011/03/21 12:53:50 christos Exp $ */
+/* $NetBSD: strtod.c,v 1.8 2011/03/27 11:21:54 he Exp $ */
/****************************************************************
@@ -1000,7 +1000,7 @@
dval(&rv0) = dval(&rv);
word0(&rv) += P*Exp_msk1;
dval(&adj) = dval(&aadj1) * ulp(&rv);
- dval(&rv) += adj;
+ dval(&rv) += dval(&adj);
#ifdef IBM
if ((word0(&rv) & Exp_mask) < P*Exp_msk1)
#else
@@ -1019,7 +1019,7 @@
}
else {
dval(&adj) = dval(&aadj1) * ulp(&rv);
- dval(&rv) += adj;
+ dval(&rv) += dval(&adj);
}
#else /*Sudden_Underflow*/
/* Compute dval(&adj) so that the IEEE rounding rules will
Home |
Main Index |
Thread Index |
Old Index