Home
last modified time | relevance | path

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

/third_party/python/Objects/
H A Dbytesobject.c3290 # define OVERALLOCATE_FACTOR 2 macro
3293 # define OVERALLOCATE_FACTOR 4 macro
3387 && allocated <= (PY_SSIZE_T_MAX - allocated / OVERALLOCATE_FACTOR)) { in _PyBytesWriter_Resize()
3389 allocated += allocated / OVERALLOCATE_FACTOR; in _PyBytesWriter_Resize()
H A Dunicodeobject.c216 # define OVERALLOCATE_FACTOR 2 macro
219 # define OVERALLOCATE_FACTOR 4 macro
13802 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
13804 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
13815 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
13817 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
13852 #undef OVERALLOCATE_FACTOR in _PyUnicodeWriter_PrepareInternal() macro

Completed in 24 milliseconds