Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dbytesobject.c3223 # define OVERALLOCATE_FACTOR 2 macro
3226 # define OVERALLOCATE_FACTOR 4 macro
3320 && allocated <= (PY_SSIZE_T_MAX - allocated / OVERALLOCATE_FACTOR)) { in _PyBytesWriter_Resize()
3322 allocated += allocated / OVERALLOCATE_FACTOR; in _PyBytesWriter_Resize()
Dunicodeobject.c202 # define OVERALLOCATE_FACTOR 2 macro
205 # define OVERALLOCATE_FACTOR 4
13865 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
13867 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
13878 && newlen <= (PY_SSIZE_T_MAX - newlen / OVERALLOCATE_FACTOR)) { in _PyUnicodeWriter_PrepareInternal()
13880 newlen += newlen / OVERALLOCATE_FACTOR; in _PyUnicodeWriter_PrepareInternal()
13915 #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()