Home
last modified time | relevance | path

Searched refs:nalloc (Results 1 – 6 of 6) sorted by path

/unit/src/
H A Dnxt_array.c24 array->nalloc = n; in nxt_array_create()
46 uint32_t nalloc, new_alloc; in nxt_array_add() local
48 nalloc = array->nalloc; in nxt_array_add()
50 if (array->nelts == nalloc) { in nxt_array_add()
52 if (nalloc < 16) { in nxt_array_add()
54 new_alloc = (nalloc == 0) ? 4 : nalloc * 2; in nxt_array_add()
58 new_alloc = nalloc + nalloc / 2; in nxt_array_add()
67 nxt_memcpy(p, array->elts, array->size * nalloc); in nxt_array_add()
74 array->nalloc = new_alloc; in nxt_array_add()
131 if (dst->nalloc >= src->nelts) { in nxt_array_copy()
H A Dnxt_array.h16 uint16_t nalloc; member
H A Dnxt_cache.c40 static void *nxt_cache_shm_alloc(void *data, size_t size, nxt_uint_t nalloc);
73 nxt_cache_shm_alloc(void *data, size_t size, nxt_uint_t nalloc) in nxt_cache_shm_alloc() argument
H A Dnxt_cert.c105 nxt_uint_t nalloc; in nxt_cert_bio() local
112 nalloc = 4; in nxt_cert_bio()
114 cert = nxt_zalloc(sizeof(nxt_cert_t) + nalloc * sizeof(X509 *)); in nxt_cert_bio()
234 if (cert->count == nalloc) { in nxt_cert_bio()
235 nalloc += 4; in nxt_cert_bio()
238 + nalloc * sizeof(X509 *)); in nxt_cert_bio()
H A Dnxt_list.c20 list->nalloc = n; in nxt_list_create()
38 if (last->nelts == list->nalloc) { in nxt_list_add()
43 sizeof(nxt_list_part_t) + list->nalloc * list->size); in nxt_list_add()
H A Dnxt_list.h24 uint32_t nalloc; member
27 uint16_t nalloc; member