newlib: update

git-svn-id: svn://kolibrios.org@1906 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2011-03-11 18:52:24 +00:00
parent a316fa7c9d
commit 2336060a0c
297 changed files with 26930 additions and 2094 deletions
@@ -300,10 +300,10 @@ _DEFUN (_strtod_r, (ptr, s00, se),
s0 = s;
y = z = 0;
for(nd = nf = 0; (c = *s) >= '0' && c <= '9'; nd++, s++)
if (nd < 9)
y = 10*y + c - '0';
if (nd < 9)
y = 10*y + c - '0';
else if (nd < 16)
z = 10*z + c - '0';
z = 10*z + c - '0';
nd0 = nd;
if (strncmp (s, _localeconv_r (ptr)->decimal_point,
strlen (_localeconv_r (ptr)->decimal_point)) == 0)
@@ -328,13 +328,13 @@ _DEFUN (_strtod_r, (ptr, s00, se),
nf += nz;
for(i = 1; i < nz; i++)
if (nd++ < 9)
y *= 10;
y *= 10;
else if (nd <= DBL_DIG + 1)
z *= 10;
z *= 10;
if (nd++ < 9)
y = 10*y + c;
y = 10*y + c;
else if (nd <= DBL_DIG + 1)
z = 10*z + c;
z = 10*z + c;
nz = 0;
}
}