Searched refs:new_allocated (Results 1 – 8 of 8) sorted by relevance
/external/brotli/c/enc/ |
D | memory.c | 56 m->new_allocated = 0; in BrotliInitMemoryManager() 121 SortPointers(m->pointers + NEW_ALLOCATED_OFFSET, m->new_allocated); in CollectGarbagePointers() 124 m->pointers + NEW_ALLOCATED_OFFSET, m->new_allocated, in CollectGarbagePointers() 126 m->new_allocated -= annihilated; in CollectGarbagePointers() 138 if (m->new_allocated != 0) { in CollectGarbagePointers() 139 assert(m->perm_allocated + m->new_allocated <= MAX_PERM_ALLOCATED); in CollectGarbagePointers() 142 sizeof(void*) * m->new_allocated); in CollectGarbagePointers() 143 m->perm_allocated += m->new_allocated; in CollectGarbagePointers() 144 m->new_allocated = 0; in CollectGarbagePointers() 155 if (m->new_allocated == MAX_NEW_ALLOCATED) CollectGarbagePointers(m); in BrotliAllocate() [all …]
|
D | memory.h | 31 size_t new_allocated; member
|
/external/valgrind/coregrind/m_demangle/ |
D | dyn-string.c | 154 int new_allocated = ds->allocated; in dyn_string_resize() local 160 while (space > new_allocated) in dyn_string_resize() 161 new_allocated *= 2; in dyn_string_resize() 163 if (new_allocated != ds->allocated) in dyn_string_resize() 165 ds->allocated = new_allocated; in dyn_string_resize()
|
/external/harfbuzz_ng/src/ |
D | hb-private.hh | 409 unsigned int new_allocated = allocated; in resize() local 410 while (size >= new_allocated) in resize() 411 new_allocated += (new_allocated >> 1) + 8; in resize() 416 new_array = (Type *) calloc (new_allocated, sizeof (Type)); in resize() 420 …bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, siz… in resize() 422 new_array = (Type *) realloc (array, new_allocated * sizeof (Type)); in resize() 430 allocated = new_allocated; in resize()
|
D | hb-buffer.cc | 122 unsigned int new_allocated = allocated; in enlarge() local 130 while (size >= new_allocated) in enlarge() 131 new_allocated += (new_allocated >> 1) + 32; in enlarge() 134 if (unlikely (_hb_unsigned_int_mul_overflows (new_allocated, sizeof (info[0])))) in enlarge() 137 new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0])); in enlarge() 138 new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0])); in enlarge() 152 allocated = new_allocated; in enlarge()
|
/external/python/cpython3/Objects/ |
D | listobject.c | 29 size_t new_allocated; in list_resize() local 49 new_allocated = (newsize >> 3) + (newsize < 9 ? 3 : 6); in list_resize() 52 if (new_allocated > SIZE_MAX - newsize) { in list_resize() 56 new_allocated += newsize; in list_resize() 60 new_allocated = 0; in list_resize() 62 if (new_allocated <= (SIZE_MAX / sizeof(PyObject *))) in list_resize() 63 PyMem_RESIZE(items, PyObject *, new_allocated); in list_resize() 72 self->allocated = new_allocated; in list_resize()
|
/external/python/cpython2/Objects/ |
D | listobject.c | 28 size_t new_allocated; in list_resize() local 48 new_allocated = (newsize >> 3) + (newsize < 9 ? 3 : 6); in list_resize() 51 if (new_allocated > PY_SIZE_MAX - newsize) { in list_resize() 55 new_allocated += newsize; in list_resize() 59 new_allocated = 0; in list_resize() 61 if (new_allocated <= (PY_SIZE_MAX / sizeof(PyObject *))) in list_resize() 62 PyMem_RESIZE(items, PyObject *, new_allocated); in list_resize() 71 self->allocated = new_allocated; in list_resize()
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 427 size_t new_allocated; in Pdata_grow() local 429 new_allocated = (allocated >> 3) + 6; in Pdata_grow() 431 if (new_allocated > (size_t)PY_SSIZE_T_MAX - allocated) in Pdata_grow() 433 new_allocated += allocated; in Pdata_grow() 434 PyMem_RESIZE(data, PyObject *, new_allocated); in Pdata_grow() 439 self->allocated = (Py_ssize_t)new_allocated; in Pdata_grow()
|