Home
last modified time | relevance | path

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

/external/harfbuzz_ng/src/hb-old/
Dharfbuzz-buffer.c66 HB_UInt new_allocated = buffer->allocated; in HB_Buffer_ensure() local
68 if (size > new_allocated) in HB_Buffer_ensure()
72 while (size > new_allocated) in HB_Buffer_ensure()
73 new_allocated += (new_allocated >> 1) + 8; in HB_Buffer_ensure()
77 if ( REALLOC_ARRAY( buffer->positions, new_allocated, HB_PositionRec ) ) in HB_Buffer_ensure()
81 if ( REALLOC_ARRAY( buffer->in_string, new_allocated, HB_GlyphItemRec ) ) in HB_Buffer_ensure()
86 if ( REALLOC_ARRAY( buffer->alt_string, new_allocated, HB_GlyphItemRec ) ) in HB_Buffer_ensure()
97 if ( REALLOC_ARRAY( buffer->alt_string, new_allocated, HB_GlyphItemRec ) ) in HB_Buffer_ensure()
102 buffer->allocated = new_allocated; in HB_Buffer_ensure()
/external/harfbuzz/src/
Dharfbuzz-buffer.c66 HB_UInt new_allocated = buffer->allocated; in hb_buffer_ensure() local
68 if (size > new_allocated) in hb_buffer_ensure()
72 while (size > new_allocated) in hb_buffer_ensure()
73 new_allocated += (new_allocated >> 1) + 8; in hb_buffer_ensure()
77 if ( REALLOC_ARRAY( buffer->positions, new_allocated, HB_PositionRec ) ) in hb_buffer_ensure()
81 if ( REALLOC_ARRAY( buffer->in_string, new_allocated, HB_GlyphItemRec ) ) in hb_buffer_ensure()
86 if ( REALLOC_ARRAY( buffer->alt_string, new_allocated, HB_GlyphItemRec ) ) in hb_buffer_ensure()
97 if ( REALLOC_ARRAY( buffer->alt_string, new_allocated, HB_GlyphItemRec ) ) in hb_buffer_ensure()
102 buffer->allocated = new_allocated; in hb_buffer_ensure()
/external/valgrind/main/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.hh299 unsigned int new_allocated = allocated + (allocated >> 1) + 8; in push() local
303 new_array = (Type *) calloc (new_allocated, sizeof (Type)); in push()
307 …bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, siz… in push()
309 new_array = (Type *) realloc (array, new_allocated * sizeof (Type)); in push()
317 allocated = new_allocated; in push()