Home
last modified time | relevance | path

Searched refs:new_allocated (Results 1 – 6 of 6) sorted by relevance

/external/brotli/enc/
Dmemory.c56 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 …]
Dmemory.h31 size_t new_allocated; member
/external/valgrind/coregrind/m_demangle/
Ddyn-string.c154 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/
Dhb-buffer.cc126 unsigned int new_allocated = allocated; in enlarge() local
134 while (size >= new_allocated) in enlarge()
135 new_allocated += (new_allocated >> 1) + 32; in enlarge()
138 if (unlikely (_hb_unsigned_int_mul_overflows (new_allocated, sizeof (info[0])))) in enlarge()
141 new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0])); in enlarge()
142 new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0])); in enlarge()
156 allocated = new_allocated; in enlarge()
Dhb-private.hh393 unsigned int new_allocated = allocated + (allocated >> 1) + 8; in push() local
397 new_array = (Type *) calloc (new_allocated, sizeof (Type)); in push()
401 …bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, siz… in push()
403 new_array = (Type *) realloc (array, new_allocated * sizeof (Type)); in push()
411 allocated = new_allocated; in push()
/external/python/cpython2/Objects/
Dlistobject.c28 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()