Home
last modified time | relevance | path

Searched refs:totalnew (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Ddatetimemodule.c1176 size_t totalnew; /* number bytes total in output format buffer, in wrap_strftime() local
1219 totalnew = format_len + 1; /* realistic if no %z/%Z/%f */ in wrap_strftime()
1220 newfmt = PyString_FromStringAndSize(NULL, totalnew); in wrap_strftime()
1326 while (usednew + ntoappend > totalnew) { in wrap_strftime()
1327 size_t bigger = totalnew << 1; in wrap_strftime()
1328 if ((bigger >> 1) != totalnew) { /* overflow */ in wrap_strftime()
1334 totalnew = bigger; in wrap_strftime()
1340 assert(usednew <= totalnew); in wrap_strftime()
/external/python/cpython3/Modules/
D_datetimemodule.c1502 size_t totalnew; /* number bytes total in output format buffer, in wrap_strftime() local
1525 totalnew = flen + 1; /* realistic if no %z/%Z */ in wrap_strftime()
1526 newfmt = PyBytes_FromStringAndSize(NULL, totalnew); in wrap_strftime()
1613 while (usednew + ntoappend > totalnew) { in wrap_strftime()
1614 if (totalnew > (PY_SSIZE_T_MAX >> 1)) { /* overflow */ in wrap_strftime()
1618 totalnew <<= 1; in wrap_strftime()
1619 if (_PyBytes_Resize(&newfmt, totalnew) < 0) in wrap_strftime()
1626 assert(usednew <= totalnew); in wrap_strftime()