Lines Matching full:cap
302 size_t cap; in ldns_edns_option_list_push() local
311 cap = option_list->_option_capacity; in ldns_edns_option_list_push()
315 if (option_count+1 > cap) { in ldns_edns_option_list_push()
319 if (cap == 0) { in ldns_edns_option_list_push()
320 cap = LDNS_OPTIONLIST_INIT; /* initial list size */ in ldns_edns_option_list_push()
322 cap *= 2; in ldns_edns_option_list_push()
326 ldns_edns_option *, cap); in ldns_edns_option_list_push()
333 option_list->_option_capacity = cap; in ldns_edns_option_list_push()
349 size_t cap; in ldns_edns_option_list_pop() local
353 cap = option_list->_option_capacity; in ldns_edns_option_list_pop()
363 if (cap > LDNS_OPTIONLIST_INIT && count-1 <= cap/2) { in ldns_edns_option_list_pop()
366 cap /= 2; in ldns_edns_option_list_pop()
369 ldns_edns_option *, cap); in ldns_edns_option_list_pop()