Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dbytesobject.c3242 # define OVERALLOCATE_FACTOR 2 macro
3245 # define OVERALLOCATE_FACTOR 4 macro
3339 && allocated <= (PY_SSIZE_T_MAX - allocated / OVERALLOCATE_FACTOR)) { in _PyBytesWriter_Resize()
3341 allocated += allocated / OVERALLOCATE_FACTOR; in _PyBytesWriter_Resize()
Dunicodeobject.c208 # define OVERALLOCATE_FACTOR 2 macro
211 # define OVERALLOCATE_FACTOR 4
14125 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
14127 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
14138 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
14140 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
14175 #undef OVERALLOCATE_FACTOR in _PyUnicodeWriter_PrepareInternal()