Lines Matching refs:new_wlen
413 u8 new_wlen, b_wlen; in _nn_divrem_unshifted() local
422 new_wlen = (u8)(a->wlen + (u8)BIT_LEN_WORDS(cnt)); in _nn_divrem_unshifted()
425 if (new_wlen < b_wlen) { /* trivial case */ in _nn_divrem_unshifted()
432 ret = nn_init(&a_shift, (u16)(new_wlen * WORD_BYTES)); EG(ret, err); in _nn_divrem_unshifted()
433 ret = nn_set_wlen(&a_shift, new_wlen); EG(ret, err); in _nn_divrem_unshifted()
435 ret = nn_set_wlen(r, new_wlen); EG(ret, err); in _nn_divrem_unshifted()
437 if (new_wlen == b_wlen) { in _nn_divrem_unshifted()
445 ret = nn_set_wlen(q, (u8)(new_wlen - b_wlen + 1)); EG(ret, err); in _nn_divrem_unshifted()
446 q->val[new_wlen - b_wlen] = (word_t) larger; in _nn_divrem_unshifted()
448 } else if (new_wlen > b_wlen) { in _nn_divrem_unshifted()
450 ret = _nn_cmp_shift(&a_shift, b_norm, (u8)(new_wlen - b_wlen), &cmp); EG(ret, err); in _nn_divrem_unshifted()
452 ret = _nn_cnd_sub_shift(larger, &a_shift, b_norm, (u8)(new_wlen - b_wlen), &borrow); EG(ret, err); in _nn_divrem_unshifted()
453 …MUST_HAVE(((!_nn_cmp_shift(&a_shift, b_norm, (u8)(new_wlen - b_wlen), &cmp)) && (cmp < 0)), ret, e… in _nn_divrem_unshifted()
462 ret = nn_set_wlen(q, (u8)(new_wlen - b_wlen + 1)); EG(ret, err); in _nn_divrem_unshifted()
463 q->val[new_wlen - b_wlen] = (word_t) larger; in _nn_divrem_unshifted()