HomeSort by relevance Sort by last modified time
    Searched refs:newsize (Results 101 - 125 of 174) sorted by null

1 2 3 45 6 7

  /external/python/cpython2/Python/
marshal.c 76 Py_ssize_t size, newsize; local
80 newsize = size + size + 1024;
81 if (newsize > 32*1024*1024) {
82 newsize = size + (size >> 3); /* 12.5% overallocation */
84 if (_PyString_Resize(&p->str, newsize) != 0) {
90 PyString_AS_STRING((PyStringObject *)p->str) + newsize;
    [all...]
  /external/python/cpython3/Objects/
bytearrayobject.c 919 Py_ssize_t newsize; local
929 newsize = strlen(className);
930 if (length > (PY_SSIZE_T_MAX - 6 - newsize) / 4) {
936 newsize += 6 + length * 4;
937 buffer = PyObject_Malloc(newsize);
966 assert(newsize - (p - buffer) >= 5);
987 assert(newsize - (p - buffer) >= 1);
    [all...]
listobject.c 20 /* Ensure ob_item has room for at least newsize elements, and set
21 * ob_size to newsize. If newsize > ob_size on entry, the content
25 * Failure is impossible if newsize <= self.allocated on entry, although
30 * Note that self->ob_item may change, and even if newsize is less
34 list_resize(PyListObject *self, Py_ssize_t newsize)
41 to accommodate the newsize. If the newsize falls lower than half
44 if (allocated >= newsize && newsize >= (allocated >> 1))
    [all...]
dictobject.c 1118 Py_ssize_t newsize, numentries; local
1254 Py_ssize_t newsize; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
listobject.c 11 /* Ensure ob_item has room for at least newsize elements, and set
12 * ob_size to newsize. If newsize > ob_size on entry, the content
16 * Failure is impossible if newsize <= self.allocated on entry, although
21 * Note that self->ob_item may change, and even if newsize is less
25 list_resize(PyListObject *self, Py_ssize_t newsize)
32 to accommodate the newsize. If the newsize falls lower than half
35 if (allocated >= newsize && newsize >= (allocated >> 1)) {
    [all...]
dictobject.c 600 Py_ssize_t newsize; local
609 for (newsize = PyDict_MINSIZE;
610 newsize <= minused && newsize > 0;
611 newsize <<= 1)
613 if (newsize <= 0) {
623 if (newsize == PyDict_MINSIZE) {
643 newtable = PyMem_NEW(PyDictEntry, newsize);
653 mp->ma_mask = newsize - 1;
654 memset(newtable, 0, sizeof(PyDictEntry) * newsize);
    [all...]
setobject.c 276 Py_ssize_t newsize; local
285 for (newsize = PySet_MINSIZE;
286 newsize <= minused && newsize > 0;
287 newsize <<= 1)
289 if (newsize <= 0) {
299 if (newsize == PySet_MINSIZE) {
319 newtable = PyMem_NEW(setentry, newsize);
329 so->mask = newsize - 1;
330 memset(newtable, 0, sizeof(setentry) * newsize);
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
listobject.c 11 /* Ensure ob_item has room for at least newsize elements, and set
12 * ob_size to newsize. If newsize > ob_size on entry, the content
16 * Failure is impossible if newsize <= self.allocated on entry, although
21 * Note that self->ob_item may change, and even if newsize is less
25 list_resize(PyListObject *self, Py_ssize_t newsize)
32 to accommodate the newsize. If the newsize falls lower than half
35 if (allocated >= newsize && newsize >= (allocated >> 1)) {
    [all...]
dictobject.c 589 Py_ssize_t newsize; local
598 for (newsize = PyDict_MINSIZE;
599 newsize <= minused && newsize > 0;
600 newsize <<= 1)
602 if (newsize <= 0) {
612 if (newsize == PyDict_MINSIZE) {
632 newtable = PyMem_NEW(PyDictEntry, newsize);
642 mp->ma_mask = newsize - 1;
643 memset(newtable, 0, sizeof(PyDictEntry) * newsize);
    [all...]
setobject.c 277 Py_ssize_t newsize; local
286 for (newsize = PySet_MINSIZE;
287 newsize <= minused && newsize > 0;
288 newsize <<= 1)
290 if (newsize <= 0) {
300 if (newsize == PySet_MINSIZE) {
320 newtable = PyMem_NEW(setentry, newsize);
330 so->mask = newsize - 1;
331 memset(newtable, 0, sizeof(setentry) * newsize);
    [all...]
  /external/python/cpython2/Objects/
bytesobject.c 1340 Py_ssize_t newsize, squotes, dquotes; local
    [all...]
listobject.c 11 /* Ensure ob_item has room for at least newsize elements, and set
12 * ob_size to newsize. If newsize > ob_size on entry, the content
16 * Failure is impossible if newsize <= self.allocated on entry, although
21 * Note that self->ob_item may change, and even if newsize is less
25 list_resize(PyListObject *self, Py_ssize_t newsize)
32 to accommodate the newsize. If the newsize falls lower than half
35 if (allocated >= newsize && newsize >= (allocated >> 1))
    [all...]
dictobject.c 600 Py_ssize_t newsize; local
609 for (newsize = PyDict_MINSIZE;
610 newsize <= minused && newsize > 0;
611 newsize <<= 1)
613 if (newsize <= 0) {
623 if (newsize == PyDict_MINSIZE) {
643 newtable = PyMem_NEW(PyDictEntry, newsize);
653 mp->ma_mask = newsize - 1;
654 memset(newtable, 0, sizeof(PyDictEntry) * newsize);
    [all...]
setobject.c 273 Py_ssize_t newsize; local
282 for (newsize = PySet_MINSIZE;
283 newsize <= minused && newsize > 0;
284 newsize <<= 1)
286 if (newsize <= 0) {
296 if (newsize == PySet_MINSIZE) {
316 newtable = PyMem_NEW(setentry, newsize);
326 so->mask = newsize - 1;
327 memset(newtable, 0, sizeof(setentry) * newsize);
    [all...]
  /external/curl/lib/
mprintf.c 1045 size_t newsize = infop->alloc*2; local
1048 if(newsize > infop->alloc)
1049 newptr = realloc(infop->buffer, newsize);
1056 infop->alloc = newsize;
  /external/dlmalloc/
malloc.c 4337 size_t newsize = sp->size - extra; local
4862 size_t newsize = oldsize + m->topsize; local
4886 size_t newsize = oldsize + dvs; local
4900 size_t newsize = oldsize + nextsize; local
4957 size_t newsize = chunksize(p) - leadsize; local
5148 size_t newsize = chunksize(next) + psize; local
    [all...]
  /external/python/cpython3/Modules/_io/
winconsoleio.c 806 DWORD newsize = new_buffersize(self, len); local
807 if (newsize > BUFMAX)
809 if (newsize < bufsize) {
816 bufsize = newsize;
    [all...]
  /external/python/cpython3/Modules/
_lzmamodule.c 134 Py_ssize_t newsize = size + (size >> 3) + 6; local
136 if (max_length > 0 && newsize > max_length)
137 newsize = max_length;
139 return _PyBytes_Resize(buf, newsize);
    [all...]
arraymodule.c 112 array_resize(arrayobject *self, Py_ssize_t newsize)
117 if (self->ob_exports > 0 && newsize != Py_SIZE(self)) {
124 to accommodate the newsize. If the newsize is 16 smaller than the
128 if (self->allocated >= newsize &&
129 Py_SIZE(self) < newsize + 16 &&
131 Py_SIZE(self) = newsize;
135 if (newsize == 0) {
155 _new_size = (newsize >> 4) + (Py_SIZE(self) < 8 ? 3 : 7) + newsize;
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
arraymodule.c 45 array_resize(arrayobject *self, Py_ssize_t newsize)
51 to accommodate the newsize. If the newsize is 16 smaller than the
55 if (self->allocated >= newsize &&
56 Py_SIZE(self) < newsize + 16 &&
58 Py_SIZE(self) = newsize;
74 _new_size = (newsize >> 4) + (Py_SIZE(self) < 8 ? 3 : 7) + newsize;
87 Py_SIZE(self) = newsize;
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
arraymodule.c 45 array_resize(arrayobject *self, Py_ssize_t newsize)
51 to accommodate the newsize. If the newsize is 16 smaller than the
55 if (self->allocated >= newsize &&
56 Py_SIZE(self) < newsize + 16 &&
58 Py_SIZE(self) = newsize;
74 _new_size = (newsize >> 4) + (Py_SIZE(self) < 8 ? 3 : 7) + newsize;
87 Py_SIZE(self) = newsize;
    [all...]
  /external/python/cpython2/Modules/
arraymodule.c 45 array_resize(arrayobject *self, Py_ssize_t newsize)
51 to accommodate the newsize. If the newsize is 16 smaller than the
55 if (self->allocated >= newsize &&
56 Py_SIZE(self) < newsize + 16 &&
58 Py_SIZE(self) = newsize;
74 _new_size = (newsize >> 4) + (Py_SIZE(self) < 8 ? 3 : 7) + newsize;
87 Py_SIZE(self) = newsize;
    [all...]
  /external/python/cpython3/Lib/test/
test_sys.py 1105 newsize = PySet_MINSIZE variable in class:SizeofTest.test_objecttypes.C
    [all...]
  /external/freetype/src/bdf/
bdflib.c 322 unsigned long newsize = oldsize + ( oldsize >> 1 ) + 5; local
332 else if ( newsize < oldsize || newsize > bigsize )
333 newsize = bigsize;
335 if ( FT_RENEW_ARRAY( list->field, oldsize, newsize ) )
338 list->size = newsize;
    [all...]
  /external/iperf3/src/
cjson.c 340 size_t newsize = 0; local
375 newsize = LLONG_MAX;
384 newsize = needed * 2;
390 newbuffer = (unsigned char*)p->hooks.reallocate(p->buffer, newsize);
395 newbuffer = (unsigned char*)p->hooks.allocate(newsize);
410 p->length = newsize;
    [all...]

Completed in 884 milliseconds

1 2 3 45 6 7