Home
last modified time | relevance | path

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

/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.cc89 unsigned int new_allocated = allocated; in enlarge() local
97 while (size >= new_allocated) in enlarge()
98 new_allocated += (new_allocated >> 1) + 32; in enlarge()
101 if (unlikely (_hb_unsigned_int_mul_overflows (new_allocated, sizeof (info[0])))) in enlarge()
104 new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0])); in enlarge()
105 new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0])); in enlarge()
119 allocated = new_allocated; in enlarge()
Dhb-private.hh350 unsigned int new_allocated = allocated + (allocated >> 1) + 8; in push() local
354 new_array = (Type *) calloc (new_allocated, sizeof (Type)); in push()
358 …bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, siz… in push()
360 new_array = (Type *) realloc (array, new_allocated * sizeof (Type)); in push()
368 allocated = new_allocated; in push()