Home
last modified time | relevance | path

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

/external/libevent/
Dbuffer.c159 size_t to_alloc; in evbuffer_chain_new() local
168 to_alloc = MIN_BUFFER_SIZE; in evbuffer_chain_new()
169 while (to_alloc < size) { in evbuffer_chain_new()
170 to_alloc <<= 1; in evbuffer_chain_new()
173 to_alloc = size; in evbuffer_chain_new()
177 if ((chain = mm_malloc(to_alloc)) == NULL) in evbuffer_chain_new()
182 chain->buffer_len = to_alloc - EVBUFFER_CHAIN_SIZE; in evbuffer_chain_new()
1549 size_t remain, to_alloc; in evbuffer_add() local
1604 to_alloc = chain->buffer_len; in evbuffer_add()
1605 if (to_alloc <= EVBUFFER_CHAIN_MAX_AUTO_SIZE/2) in evbuffer_add()
[all …]
/external/icu/icu4c/source/test/perf/ustrperf/
Dstringperf.cpp40 int to_alloc = loops * MAXNUMLINES * (MAXSRCLEN + catenate_STRLEN); in main() local
41 catICU = new UnicodeString(to_alloc,'a',0); in main()
Dstringperf.h73 int to_alloc = loops * MAXNUMLINES * (MAXSRCLEN + catenate_STRLEN); in getEventsPerIteration() local
74 catICU = new UnicodeString(to_alloc,'a',0); in getEventsPerIteration()