Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 4 of 4) sorted by relevance

/hardware/qcom/msm8998/json-c/
Darraylist.c62 int new_size; in array_list_expand_internal() local
65 new_size = arr->size << 1; in array_list_expand_internal()
66 if (new_size < max) in array_list_expand_internal()
67 new_size = max; in array_list_expand_internal()
68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal()
70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal()
71 arr->size = new_size; in array_list_expand_internal()
Dprintbuf.c60 int new_size; in printbuf_extend() local
65 new_size = p->size * 2; in printbuf_extend()
66 if (new_size < min_size + 8) in printbuf_extend()
67 new_size = min_size + 8; in printbuf_extend()
71 p->bpos, min_size, p->size, new_size); in printbuf_extend()
73 if(!(t = (char*)realloc(p->buf, new_size))) in printbuf_extend()
75 p->size = new_size; in printbuf_extend()
Dlinkhash.h286 void lh_table_resize(struct lh_table *t, int new_size);
Dlinkhash.c460 void lh_table_resize(struct lh_table *t, int new_size) in lh_table_resize() argument
465 new_t = lh_table_new(new_size, t->name, NULL, t->hash_fn, t->equal_fn); in lh_table_resize()
473 t->size = new_size; in lh_table_resize()