Home
last modified time | relevance | path

Searched refs:tmp_nn (Results 1 – 2 of 2) sorted by relevance

/freebsd/crypto/libecc/src/fp/
H A Dfp_sqrt.c115 nn q, s, one_nn, two_nn, m, i, tmp_nn; in fp_sqrt() local
119 i.magic = tmp_nn.magic = z.magic = t.magic = b.magic = WORD(0); in fp_sqrt()
124 ret = nn_init(&tmp_nn, 0); EG(ret, err); in fp_sqrt()
180 ret = nn_divrem(&tmp_nn, &i, &q, &two_nn); EG(ret, err); in fp_sqrt()
182 ret = nn_copy(&q, &tmp_nn); EG(ret, err); in fp_sqrt()
192 ret = nn_inc(&tmp_nn, &(_n->ctx->p)); EG(ret, err); in fp_sqrt()
193 ret = nn_rshift(&tmp_nn, &tmp_nn, 2); EG(ret, err); in fp_sqrt()
194 ret = fp_pow(sqrt1, _n, &tmp_nn); EG(ret, err); in fp_sqrt()
206 ret = nn_inc(&tmp_nn, &q); EG(ret, err); in fp_sqrt()
207 ret = nn_rshift(&tmp_nn, &tmp_nn, 1); EG(ret, err); in fp_sqrt()
[all …]
/freebsd/crypto/libecc/src/nn/
H A Dnn_div.c797 nn p, tmp_nn; in nn_compute_div_coefs() local
799 p.magic = tmp_nn.magic = WORD(0); in nn_compute_div_coefs()
822 ret = nn_init(&tmp_nn, 0); EG(ret, err); in nn_compute_div_coefs()
842 …ret = nn_rshift(&tmp_nn, p_normalized, (bitcnt_t)(p_rounded_bitlen - (2 * WORDSIZE))); EG(ret, err… in nn_compute_div_coefs()
843 ret = wreciprocal(tmp_nn.val[1], tmp_nn.val[0], p_reciprocal); in nn_compute_div_coefs()
847 nn_uninit(&tmp_nn); in nn_compute_div_coefs()