• Home
  • Raw
  • Download

Lines Matching refs:mp_word

71 typedef unsigned long mp_word __attribute__((mode(TI)));  typedef
77 typedef u64 mp_word; typedef
120 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT + 1))
517 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_mul()
1776 mp_word tmp; in mp_div()
1777 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); in mp_div()
1778 tmp |= ((mp_word) x.dp[i - 1]); in mp_div()
1779 tmp /= ((mp_word) y.dp[t]); in mp_div()
1780 if (tmp > (mp_word) MP_MASK) in mp_div()
1782 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK)); in mp_div()
2125 (1 << (sizeof(mp_word) * CHAR_BIT - 2*DIGIT_BIT - 1))) { in mp_sqr()
2339 mp_word r; in s_mp_mul_digs()
2345 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in s_mp_mul_digs()
2376 r = ((mp_word)*tmpt) + in s_mp_mul_digs()
2377 ((mp_word)tmpx) * ((mp_word)*tmpy++) + in s_mp_mul_digs()
2378 ((mp_word) u); in s_mp_mul_digs()
2381 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_digs()
2384 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in s_mp_mul_digs()
2420 register mp_word _W; in fast_s_mp_mul_digs()
2454 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); in fast_s_mp_mul_digs()
2462 _W = _W >> ((mp_word)DIGIT_BIT); in fast_s_mp_mul_digs()
2520 mp_word r; in s_mp_sqr()
2534 r = ((mp_word) t.dp[2*ix]) + in s_mp_sqr()
2535 ((mp_word)a->dp[ix])*((mp_word)a->dp[ix]); in s_mp_sqr()
2538 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
2541 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr()
2551 r = ((mp_word)tmpx) * ((mp_word)a->dp[iy]); in s_mp_sqr()
2556 r = ((mp_word) *tmpt) + r + r + ((mp_word) u); in s_mp_sqr()
2559 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
2562 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr()
2566 r = ((mp_word) *tmpt) + ((mp_word) u); in s_mp_sqr()
2567 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
2568 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr()
2587 mp_word r; in s_mp_mul_high_digs()
2593 && MIN (a->used, b->used) < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in s_mp_mul_high_digs()
2620 r = ((mp_word)*tmpt) + in s_mp_mul_high_digs()
2621 ((mp_word)tmpx) * ((mp_word)*tmpy++) + in s_mp_mul_high_digs()
2622 ((mp_word) u); in s_mp_mul_high_digs()
2625 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_high_digs()
2628 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in s_mp_mul_high_digs()
2673 *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; in mp_montgomery_setup()
2692 mp_word W[MP_WARRAY]; in fast_mp_montgomery_reduce()
2708 register mp_word *_W; in fast_mp_montgomery_reduce()
2758 register mp_word *_W; in fast_mp_montgomery_reduce()
2768 *_W++ += ((mp_word)mu) * ((mp_word)*tmpn++); in fast_mp_montgomery_reduce()
2773 W[ix + 1] += W[ix] >> ((mp_word) DIGIT_BIT); in fast_mp_montgomery_reduce()
2782 register mp_word *_W, *_W1; in fast_mp_montgomery_reduce()
2793 *_W++ += *_W1++ >> ((mp_word) DIGIT_BIT); in fast_mp_montgomery_reduce()
2810 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK)); in fast_mp_montgomery_reduce()
3016 P->used < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_exptmod_fast()
3250 mp_word W1; in fast_s_mp_sqr()
3264 mp_word _W; in fast_s_mp_sqr()
3291 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); in fast_s_mp_sqr()
3299 _W += ((mp_word)a->dp[ix>>1])*((mp_word)a->dp[ix>>1]); in fast_s_mp_sqr()
3306 W1 = _W >> ((mp_word)DIGIT_BIT); in fast_s_mp_sqr()
3337 mp_word r; in mp_mul_d()
3365 r = ((mp_word) u) + ((mp_word)*tmpa++) * ((mp_word)b); in mp_mul_d()
3368 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); in mp_mul_d()
3371 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in mp_mul_d()