Searched refs:new_wlen (Results 1 – 3 of 3) sorted by relevance
/freebsd/crypto/libecc/src/nn/ |
H A D | nn_div.c | 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() [all …]
|
H A D | nn.c | 221 int nn_set_wlen(nn_t A, u8 new_wlen) in nn_set_wlen() argument 227 MUST_HAVE((new_wlen <= NN_MAX_WORD_LEN), ret, err); in nn_set_wlen() 232 A->val[i] = (word_t)(A->val[i] & WORD_MASK_IFZERO((i >= new_wlen))); in nn_set_wlen() 235 A->wlen = new_wlen; in nn_set_wlen()
|
/freebsd/crypto/libecc/include/libecc/nn/ |
H A D | nn.h | 85 ATTRIBUTE_WARN_UNUSED_RET int nn_set_wlen(nn_t A, u8 new_wlen);
|