Home | History | Annotate | Download | only in nvmectl

Lines Matching defs:mu

2579 /* reduces x mod m, assumes 0 < x < m**2, mu is 
2584 mp_reduce(mp_int * x, mp_int * m, mp_int * mu)
2599 if ((res = signed_multiply(&q, mu, &q)) != MP_OKAY) {
2603 if ((res = basic_multiply_partial_upper(&q, mu, &q, um)) != MP_OKAY) {
3251 mp_int M[TAB_SIZE], res, mu;
3274 /* create mu, used for Barrett reduction */
3275 if ((err = mp_init(&mu)) != MP_OKAY) {
3280 if ((err = mp_reduce_setup(&mu, P)) != MP_OKAY) {
3285 if ((err = mp_reduce_2k_setup_l(P, &mu)) != MP_OKAY) {
3318 if ((err = redux(&M[1 << (winsize - 1)], P, &mu)) != MP_OKAY) {
3330 if ((err = redux(&M[x], P, &mu)) != MP_OKAY) {
3379 if ((err = redux(&res, P, &mu)) != MP_OKAY) {
3396 if ((err = redux(&res, P, &mu)) != MP_OKAY) {
3405 if ((err = redux(&res, P, &mu)) != MP_OKAY) {
3423 if ((err = redux(&res, P, &mu)) != MP_OKAY) {
3433 if ((err = redux(&res, P, &mu)) != MP_OKAY) {
3445 mp_clear(&mu);
3633 /* mu = ai * m' mod b
3639 mp_digit mu;
3640 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK);
3642 /* a = a + mu * m * b**i
3669 *_W++ += ((mp_word)mu) * ((mp_word)*tmpn++);
3742 mp_digit mu;
3764 /* mu = ai * rho mod b
3772 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK);
3774 /* a = a + mu * m * b**i */
3792 r = ((mp_word)mu) * ((mp_word)*tmpn++) +
3870 mp_digit mu, *tmpx1, *tmpx2;
3894 mu = 0;
3898 r = ((mp_word)*tmpx2++) * ((mp_word)k) + *tmpx1 + mu;
3900 mu = (mp_digit)(r >> ((mp_word)DIGIT_BIT));
3904 *tmpx1++ = mu;
4542 mp_digit *tmpa, *tmpc, mu;
4586 mu = *tmpc >> DIGIT_BIT;
4591 *tmpc = *tmpa++ + mu;
4592 mu = *tmpc >> DIGIT_BIT;
4597 *tmpc++ = mu;
4631 mp_digit *tmpa, *tmpc, mu;
4679 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1);
4684 *tmpc = *tmpa++ - mu;
4685 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1);