Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_io/
Dfileio.c655 new_buffersize(fileio *self, size_t currentsize) argument
662 assert(currentsize <= PY_SSIZE_T_MAX);
663 if (currentsize > 65536)
664 addend = currentsize >> 3;
666 addend = 256 + currentsize;
670 return addend + currentsize;
Dwinconsoleio.c760 new_buffersize(winconsoleio *self, DWORD currentsize) in new_buffersize() argument
767 if (currentsize > 65536) in new_buffersize()
768 addend = currentsize >> 3; in new_buffersize()
770 addend = 256 + currentsize; in new_buffersize()
774 return addend + currentsize; in new_buffersize()
/external/python/cpython2/Modules/_io/
Dfileio.c540 new_buffersize(fileio *self, size_t currentsize) in new_buffersize() argument
564 return currentsize + end - pos + 1; in new_buffersize()
571 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()
/external/python/cpython2/Objects/
Dfileobject.c1012 new_buffersize(PyFileObject *f, size_t currentsize) in new_buffersize() argument
1043 bufsize = currentsize + end - pos + 1; in new_buffersize()
1053 return currentsize + (currentsize >> 3) + 6; in new_buffersize()