Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dbytesobject.c3205 # define OVERALLOCATE_FACTOR 2 macro
3208 # define OVERALLOCATE_FACTOR 4 macro
3300 && allocated <= (PY_SSIZE_T_MAX - allocated / OVERALLOCATE_FACTOR)) { in _PyBytesWriter_Resize()
3302 allocated += allocated / OVERALLOCATE_FACTOR; in _PyBytesWriter_Resize()
Dunicodeobject.c183 # define OVERALLOCATE_FACTOR 2 macro
186 # define OVERALLOCATE_FACTOR 4
13523 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
13525 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
13536 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
13538 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
13573 #undef OVERALLOCATE_FACTOR in _PyUnicodeWriter_PrepareInternal()
/external/python/cpython2/Objects/
Dbytesobject.c3160 # define OVERALLOCATE_FACTOR 2 macro
3163 # define OVERALLOCATE_FACTOR 4 macro
3255 && allocated <= (PY_SSIZE_T_MAX - allocated / OVERALLOCATE_FACTOR)) { in _PyBytesWriter_Resize()
3257 allocated += allocated / OVERALLOCATE_FACTOR; in _PyBytesWriter_Resize()