Home
last modified time | relevance | path

Searched refs:currentsize (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Modules/_io/
Dfileio.c658 new_buffersize(fileio *self, size_t currentsize) argument
665 assert(currentsize <= PY_SSIZE_T_MAX);
666 if (currentsize > 65536)
667 addend = currentsize >> 3;
669 addend = 256 + currentsize;
673 return addend + currentsize;
Dwinconsoleio.c780 new_buffersize(winconsoleio *self, DWORD currentsize) in new_buffersize() argument
787 if (currentsize > 65536) in new_buffersize()
788 addend = currentsize >> 3; in new_buffersize()
790 addend = 256 + currentsize; in new_buffersize()
794 return addend + currentsize; in new_buffersize()
/external/python/cpython2/Modules/_io/
Dfileio.c514 new_buffersize(fileio *self, size_t currentsize) in new_buffersize() argument
528 return currentsize + end - pos + 1; in new_buffersize()
535 return currentsize + (currentsize >> 3) + 6; in new_buffersize()
/external/python/cpython2/Objects/
Dfileobject.c1002 new_buffersize(PyFileObject *f, size_t currentsize) in new_buffersize() argument
1025 return currentsize + end - pos + 1; in new_buffersize()
1032 return currentsize + (currentsize >> 3) + 6; in new_buffersize()
/external/python/cpython2/Modules/
Dbz2module.c214 Util_NewBufferSize(size_t currentsize) in Util_NewBufferSize() argument
219 return currentsize + (currentsize >> 3) + 6; in Util_NewBufferSize()