Home
last modified time | relevance | path

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

/device/google/bonito/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()
/device/google/coral/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()
/device/google/crosshatch/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()
/device/linaro/dragonboard/qcom/rmtfs/
Dqmi_tlv.c156 size_t new_size; in qmi_tlv_alloc_item() local
163 new_size = tlv->size + sizeof(struct qmi_tlv_item) + len; in qmi_tlv_alloc_item()
164 newp = realloc(tlv->allocated, new_size); in qmi_tlv_alloc_item()
176 tlv->size = new_size; in qmi_tlv_alloc_item()
/device/generic/goldfish-opengl/android-emu/android/base/
Daddress_space.h181 uint64_t new_size = to_borrow_from->size - size; in address_space_allocator_split_block() local
183 to_borrow_from->size = new_size; in address_space_allocator_split_block()
185 new_block->offset = to_borrow_from->offset + new_size; in address_space_allocator_split_block()