Lines Matching refs:nwords
475 * Resize the coefficient. Existing data up to 'nwords' is left untouched.
480 * Case nwords == result->alloc:
483 * Case nwords > result->alloc:
489 * Case nwords < result->alloc:
499 mpd_qresize(mpd_t *result, mpd_ssize_t nwords, uint32_t *status)
505 nwords = (nwords <= MPD_MINALLOC) ? MPD_MINALLOC : nwords;
506 if (nwords == result->alloc) {
510 if (nwords > result->alloc) {
511 return mpd_switch_to_dyn(result, nwords, status);
516 return mpd_realloc_dyn(result, nwords, status);
521 mpd_qresize_cxx(mpd_t *result, mpd_ssize_t nwords)
527 nwords = (nwords <= MPD_MINALLOC) ? MPD_MINALLOC : nwords;
528 if (nwords == result->alloc) {
532 if (nwords > result->alloc) {
533 return mpd_switch_to_dyn_cxx(result, nwords);
538 return mpd_realloc_dyn_cxx(result, nwords);
544 mpd_qresize_zero(mpd_t *result, mpd_ssize_t nwords, uint32_t *status)
550 nwords = (nwords <= MPD_MINALLOC) ? MPD_MINALLOC : nwords;
551 if (nwords != result->alloc) {
553 if (nwords > result->alloc) {
554 return mpd_switch_to_dyn_zero(result, nwords, status);
557 else if (!mpd_realloc_dyn(result, nwords, status)) {
562 mpd_uint_zero(result->data, nwords);
589 mpd_resize(mpd_t *result, mpd_ssize_t nwords, mpd_context_t *ctx)
592 if (!mpd_qresize(result, nwords, &status)) {
600 mpd_resize_zero(mpd_t *result, mpd_ssize_t nwords, mpd_context_t *ctx)
603 if (!mpd_qresize_zero(result, nwords, &status)) {