Searched refs:new_allocated (Results 1 – 4 of 4) sorted by relevance
154 int new_allocated = ds->allocated; in dyn_string_resize() local160 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()
259 int new_allocated; in compact() local267 new_allocated = real->len + _DBUS_STRING_ALLOCATION_PADDING; in compact()269 new_str = dbus_realloc (real->str - real->align_offset, new_allocated); in compact()274 real->allocated = new_allocated; in compact()312 int new_allocated; in reallocate_for_length() local319 new_allocated = _DBUS_STRING_MAX_LENGTH + _DBUS_STRING_ALLOCATION_PADDING; in reallocate_for_length()321 new_allocated = real->allocated * 2; in reallocate_for_length()333 new_allocated = 0; /* ensure a realloc every time so that we go in reallocate_for_length()340 new_allocated = MAX (new_allocated, in reallocate_for_length()343 _dbus_assert (new_allocated >= real->allocated); /* code relies on this */ in reallocate_for_length()[all …]
126 unsigned int new_allocated = allocated; in enlarge() local134 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()
392 unsigned int new_allocated = allocated + (allocated >> 1) + 8; in push() local396 new_array = (Type *) calloc (new_allocated, sizeof (Type)); in push()400 …bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, siz… in push()402 new_array = (Type *) realloc (array, new_allocated * sizeof (Type)); in push()410 allocated = new_allocated; in push()