• Home
  • Raw
  • Download

Lines Matching refs:mp_word

74 typedef unsigned long mp_word __attribute__((mode(TI)));  typedef
80 typedef u64 mp_word; typedef
123 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT + 1))
522 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_mul()
1783 mp_word tmp; in mp_div()
1784 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); in mp_div()
1785 tmp |= ((mp_word) x.dp[i - 1]); in mp_div()
1786 tmp /= ((mp_word) y.dp[t]); in mp_div()
1787 if (tmp > (mp_word) MP_MASK) in mp_div()
1789 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK)); in mp_div()
2132 (1 << (sizeof(mp_word) * CHAR_BIT - 2*DIGIT_BIT - 1))) { in mp_sqr()
2346 mp_word r; in s_mp_mul_digs()
2353 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in s_mp_mul_digs()
2385 r = ((mp_word)*tmpt) + in s_mp_mul_digs()
2386 ((mp_word)tmpx) * ((mp_word)*tmpy++) + in s_mp_mul_digs()
2387 ((mp_word) u); in s_mp_mul_digs()
2390 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_digs()
2393 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in s_mp_mul_digs()
2430 register mp_word _W; in fast_s_mp_mul_digs()
2464 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); in fast_s_mp_mul_digs()
2472 _W = _W >> ((mp_word)DIGIT_BIT); in fast_s_mp_mul_digs()
2531 mp_word r; in s_mp_sqr()
2545 r = ((mp_word) t.dp[2*ix]) + in s_mp_sqr()
2546 ((mp_word)a->dp[ix])*((mp_word)a->dp[ix]); in s_mp_sqr()
2549 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
2552 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr()
2562 r = ((mp_word)tmpx) * ((mp_word)a->dp[iy]); in s_mp_sqr()
2567 r = ((mp_word) *tmpt) + r + r + ((mp_word) u); in s_mp_sqr()
2570 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
2573 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr()
2577 r = ((mp_word) *tmpt) + ((mp_word) u); in s_mp_sqr()
2578 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
2579 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr()
2598 mp_word r; in s_mp_mul_high_digs()
2604 && MIN (a->used, b->used) < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in s_mp_mul_high_digs()
2631 r = ((mp_word)*tmpt) + in s_mp_mul_high_digs()
2632 ((mp_word)tmpx) * ((mp_word)*tmpy++) + in s_mp_mul_high_digs()
2633 ((mp_word) u); in s_mp_mul_high_digs()
2636 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_high_digs()
2639 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in s_mp_mul_high_digs()
2684 *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; in mp_montgomery_setup()
2703 mp_word W[MP_WARRAY]; in fast_mp_montgomery_reduce()
2719 register mp_word *_W; in fast_mp_montgomery_reduce()
2769 register mp_word *_W; in fast_mp_montgomery_reduce()
2779 *_W++ += ((mp_word)mu) * ((mp_word)*tmpn++); in fast_mp_montgomery_reduce()
2784 W[ix + 1] += W[ix] >> ((mp_word) DIGIT_BIT); in fast_mp_montgomery_reduce()
2793 register mp_word *_W, *_W1; in fast_mp_montgomery_reduce()
2804 *_W++ += *_W1++ >> ((mp_word) DIGIT_BIT); in fast_mp_montgomery_reduce()
2821 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK)); in fast_mp_montgomery_reduce()
3027 P->used < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_exptmod_fast()
3261 mp_word W1; in fast_s_mp_sqr()
3275 mp_word _W; in fast_s_mp_sqr()
3302 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); in fast_s_mp_sqr()
3310 _W += ((mp_word)a->dp[ix>>1])*((mp_word)a->dp[ix>>1]); in fast_s_mp_sqr()
3317 W1 = _W >> ((mp_word)DIGIT_BIT); in fast_s_mp_sqr()
3348 mp_word r; in mp_mul_d()
3376 r = ((mp_word) u) + ((mp_word)*tmpa++) * ((mp_word)b); in mp_mul_d()
3379 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); in mp_mul_d()
3382 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in mp_mul_d()