Lines Matching refs:mu
273 /* mu = ai * m' mod b
279 register mp_digit mu;
280 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK);
282 /* a = a + mu * m * b**i
309 *_W++ += ((mp_word)mu) * ((mp_word)*tmpn++);
890 mp_digit *tmpa, *tmpc, mu;
934 mu = *tmpc >> DIGIT_BIT;
939 *tmpc = *tmpa++ + mu;
940 mu = *tmpc >> DIGIT_BIT;
945 *tmpc++ = mu;
2305 mp_digit mu, *tmpx1, *tmpx2;
2329 mu = 0;
2333 r = ((mp_word)*tmpx2++) * ((mp_word)k) + *tmpx1 + mu;
2335 mu = (mp_digit)(r >> ((mp_word)DIGIT_BIT));
2339 *tmpx1++ = mu;
4753 mp_digit mu;
4777 /* mu = ai * rho mod b
4785 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK);
4787 /* a = a + mu * m * b**i */
4805 r = ((mp_word)mu) * ((mp_word)*tmpn++) +
6574 /* reduces x mod m, assumes 0 < x < m**2, mu is
6578 int mp_reduce (mp_int * x, mp_int * m, mp_int * mu)
6593 if ((res = mp_mul (&q, mu, &q)) != MP_OKAY) {
6598 if ((res = s_mp_mul_high_digs (&q, mu, &q, um)) != MP_OKAY) {
6602 if ((res = fast_s_mp_mul_high_digs (&q, mu, &q, um)) != MP_OKAY) {
7540 mp_digit *tmpa, *tmpc, mu;
7588 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1);
7593 *tmpc = *tmpa++ - mu;
7594 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1);
8882 mp_int M[TAB_SIZE], res, mu;
8928 /* create mu, used for Barrett reduction */
8929 if ((err = mp_init (&mu)) != MP_OKAY) {
8934 if ((err = mp_reduce_setup (&mu, P)) != MP_OKAY) {
8939 if ((err = mp_reduce_2k_setup_l (P, &mu)) != MP_OKAY) {
8972 if ((err = redux (&M[1 << (winsize - 1)], P, &mu)) != MP_OKAY) {
8984 if ((err = redux (&M[x], P, &mu)) != MP_OKAY) {
9033 if ((err = redux (&res, P, &mu)) != MP_OKAY) {
9050 if ((err = redux (&res, P, &mu)) != MP_OKAY) {
9059 if ((err = redux (&res, P, &mu)) != MP_OKAY) {
9077 if ((err = redux (&res, P, &mu)) != MP_OKAY) {
9087 if ((err = redux (&res, P, &mu)) != MP_OKAY) {
9097 LBL_MU:mp_clear (&mu);