Module Name:    src
Committed By:   christos
Date:           Thu Mar 22 15:34:14 UTC 2012

Modified Files:
        src/lib/libc/gdtoa: strtod.c

Log Message:
add constcond, make shifts unsigned


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/gdtoa/strtod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gdtoa/strtod.c
diff -u src/lib/libc/gdtoa/strtod.c:1.10 src/lib/libc/gdtoa/strtod.c:1.11
--- src/lib/libc/gdtoa/strtod.c:1.10	Thu Mar 22 09:15:48 2012
+++ src/lib/libc/gdtoa/strtod.c	Thu Mar 22 11:34:14 2012
@@ -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 @@ strtod
 					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 @@ strtod
 			aadj *= 0.5;
 			dval(&aadj1) = dsign ? aadj : -aadj;
 #ifdef Check_FLT_ROUNDS
+			/* CONSTCOND */
 			switch(Rounding) {
 				case 2: /* towards +infinity */
 					dval(&aadj1) -= 0.5;

Reply via email to