Lines Matching refs:nwords
495 mpd_qresize(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_qresize() argument
501 nwords = (nwords <= MPD_MINALLOC) ? MPD_MINALLOC : nwords; in mpd_qresize()
502 if (nwords == result->alloc) { in mpd_qresize()
506 if (nwords > result->alloc) { in mpd_qresize()
507 return mpd_switch_to_dyn(result, nwords, status); in mpd_qresize()
512 return mpd_realloc_dyn(result, nwords, status); in mpd_qresize()
518 mpd_qresize_zero(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_qresize_zero() argument
524 nwords = (nwords <= MPD_MINALLOC) ? MPD_MINALLOC : nwords; in mpd_qresize_zero()
525 if (nwords != result->alloc) { in mpd_qresize_zero()
527 if (nwords > result->alloc) { in mpd_qresize_zero()
528 return mpd_switch_to_dyn_zero(result, nwords, status); in mpd_qresize_zero()
531 else if (!mpd_realloc_dyn(result, nwords, status)) { in mpd_qresize_zero()
536 mpd_uint_zero(result->data, nwords); in mpd_qresize_zero()
563 mpd_resize(mpd_t *result, mpd_ssize_t nwords, mpd_context_t *ctx) in mpd_resize() argument
566 if (!mpd_qresize(result, nwords, &status)) { in mpd_resize()
574 mpd_resize_zero(mpd_t *result, mpd_ssize_t nwords, mpd_context_t *ctx) in mpd_resize_zero() argument
577 if (!mpd_qresize_zero(result, nwords, &status)) { in mpd_resize_zero()