Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gdtoa add constcond, make shifts unsigned
details: https://anonhg.NetBSD.org/src/rev/5148f85d312b
branches: trunk
changeset: 778336:5148f85d312b
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 22 15:34:14 2012 +0000
description:
add constcond, make shifts unsigned
diffstat:
lib/libc/gdtoa/strtod.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r a95b8b956dda -r 5148f85d312b lib/libc/gdtoa/strtod.c
--- a/lib/libc/gdtoa/strtod.c Thu Mar 22 15:26:32 2012 +0000
+++ b/lib/libc/gdtoa/strtod.c Thu Mar 22 15:34:14 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strtod.c,v 1.10 2012/03/22 13:15:48 he Exp $ */
+/* $NetBSD: strtod.c,v 1.11 2012/03/22 15:34:14 christos Exp $ */
/****************************************************************
@@ -554,10 +554,10 @@
if (j >= 53)
word0(&rv) = (P+2)*Exp_msk1;
else
- word0(&rv) &= 0xffffffff << (j-32);
+ word0(&rv) &= 0xffffffffU << (j-32);
}
else
- word1(&rv) &= 0xffffffff << j;
+ word1(&rv) &= 0xffffffffU << j;
}
#else
for(j = 0; e1 > 1; j++, e1 = (unsigned int)e1 >> 1)
@@ -956,6 +956,7 @@
aadj *= 0.5;
dval(&aadj1) = dsign ? aadj : -aadj;
#ifdef Check_FLT_ROUNDS
+ /* CONSTCOND */
switch(Rounding) {
case 2: /* towards +infinity */
dval(&aadj1) -= 0.5;
Home |
Main Index |
Thread Index |
Old Index