Searched refs:new_allocated (Results 1 - 5 of 5) sorted by relevance

/external/valgrind/main/coregrind/m_demangle/
H A Ddyn-string.c154 int new_allocated = ds->allocated; local
160 while (space > new_allocated)
161 new_allocated *= 2;
163 if (new_allocated != ds->allocated)
165 ds->allocated = new_allocated;
/external/chromium_org/third_party/harfbuzz-ng/src/
H A Dhb-buffer.cc89 unsigned int new_allocated = allocated; local
97 while (size >= new_allocated)
98 new_allocated += (new_allocated >> 1) + 32;
101 if (unlikely (_hb_unsigned_int_mul_overflows (new_allocated, sizeof (info[0]))))
104 new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0]));
105 new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0]));
119 allocated = new_allocated;
H A Dhb-private.hh350 unsigned int new_allocated = allocated + (allocated >> 1) + 8; local
354 new_array = (Type *) calloc (new_allocated, sizeof (Type));
358 bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, sizeof (Type));
360 new_array = (Type *) realloc (array, new_allocated * sizeof (Type));
368 allocated = new_allocated;
/external/harfbuzz_ng/src/
H A Dhb-buffer.cc89 unsigned int new_allocated = allocated; local
97 while (size >= new_allocated)
98 new_allocated += (new_allocated >> 1) + 32;
101 if (unlikely (_hb_unsigned_int_mul_overflows (new_allocated, sizeof (info[0]))))
104 new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0]));
105 new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0]));
119 allocated = new_allocated;
H A Dhb-private.hh311 unsigned int new_allocated = allocated + (allocated >> 1) + 8; local
315 new_array = (Type *) calloc (new_allocated, sizeof (Type));
319 bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, sizeof (Type));
321 new_array = (Type *) realloc (array, new_allocated * sizeof (Type));
329 allocated = new_allocated;

Completed in 167 milliseconds