Home
last modified time | relevance | path

Searched refs:alloc_cnt (Results 1 – 3 of 3) sorted by relevance

/third_party/node/deps/cares/src/lib/
Dares_process.c354 size_t *alloc_cnt, size_t *num) in socket_list_append() argument
356 if (*num >= *alloc_cnt) { in socket_list_append()
358 size_t new_alloc = (*alloc_cnt) << 1; in socket_list_append()
364 *alloc_cnt = new_alloc; in socket_list_append()
375 size_t alloc_cnt = 1 << 4; in channel_socket_list() local
376 ares_socket_t *out = ares_malloc(alloc_cnt * sizeof(*out)); in channel_socket_list()
398 if (!socket_list_append(&out, conn->fd, &alloc_cnt, num)) { in channel_socket_list()
Dares_dns_record.c253 size_t alloc_cnt = ares__round_up_pow2(dnsrec->qdcount + 1); in ares_dns_record_query_add() local
256 sizeof(*temp) * alloc_cnt); in ares_dns_record_query_add()
261 dnsrec->qdalloc = alloc_cnt; in ares_dns_record_query_add()
/third_party/mbedtls/programs/test/
Dbenchmark.c181 size_t alloc_cnt, free_cnt, prv_alloc, prv_free; \
190 mbedtls_memory_buffer_alloc_count_get(&alloc_cnt, &free_cnt); \
198 (unsigned) (alloc_cnt - prv_alloc));