Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_io/
Dfileio.c649 new_buffersize(fileio *self, size_t currentsize) argument
656 assert(currentsize <= PY_SSIZE_T_MAX);
657 if (currentsize > 65536)
658 addend = currentsize >> 3;
660 addend = 256 + currentsize;
664 return addend + currentsize;
Dwinconsoleio.c759 new_buffersize(winconsoleio *self, DWORD currentsize) in new_buffersize() argument
766 if (currentsize > 65536) in new_buffersize()
767 addend = currentsize >> 3; in new_buffersize()
769 addend = 256 + currentsize; in new_buffersize()
773 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/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()
/external/python/cpython2/Modules/
Dbz2module.c214 Util_NewBufferSize(size_t currentsize) in Util_NewBufferSize() argument
219 return currentsize + (currentsize >> 3) + 6; in Util_NewBufferSize()