Searched refs:MP_MASK (Results 1 – 25 of 32) sorted by relevance
12
199 if (tmp > (mp_word) MP_MASK) in mp_div()200 tmp = MP_MASK; in mp_div()201 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK)); in mp_div()209 q.dp[i - t - 1] = (q.dp[i - t - 1] + 1) & MP_MASK; in mp_div()211 q.dp[i - t - 1] = (q.dp[i - t - 1] - 1) & MP_MASK; in mp_div()254 q.dp[i - t - 1] = (q.dp[i - t - 1] - 1UL) & MP_MASK; in mp_div()
55 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK); in mp_montgomery_reduce()82 *tmpx++ = (mp_digit)(r & ((mp_word) MP_MASK)); in mp_montgomery_reduce()91 *tmpx++ &= MP_MASK; in mp_montgomery_reduce()
41 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()62 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()70 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
76 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK); in fast_mp_montgomery_reduce()147 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK)); in fast_mp_montgomery_reduce()
60 *tmpc++ &= MP_MASK; in s_mp_sub()72 *tmpc++ &= MP_MASK; in s_mp_sub()
74 *tmpc++ &= MP_MASK; in s_mp_add()89 *tmpc++ &= MP_MASK; in s_mp_add()
71 *tmpc++ &= MP_MASK; in mp_sub_d()77 *tmpc++ &= MP_MASK; in mp_sub_d()
68 *tmpc++ &= MP_MASK; in mp_add_d()74 *tmpc++ &= MP_MASK; in mp_add_d()
85 W[ix] = (mp_digit)(_W & MP_MASK); in fast_s_mp_sqr()99 *tmpb++ = W[ix] & MP_MASK; in fast_s_mp_sqr()
32 if (a->dp[ix] != MP_MASK) { in mp_dr_is_modulus()
22 a->dp[0] = b & MP_MASK; in mp_set()
30 if (a->dp[ix] == MP_MASK) { in mp_reduce_is_2k_l()
39 if (iz > (mp_digit)MP_MASK) { in mp_reduce_is_2k()
43 a->dp[0] = (*b & MP_MASK); in mp_read_unsigned_bin()
51 *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; in mp_montgomery_setup()
32 d = ((mp_digit) abs (rand ())) & MP_MASK; in mp_rand()
54 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); in mp_mul_d()
52 *tmpb++ = ((*tmpa++ << ((mp_digit)1)) | r) & MP_MASK; in mp_mul_2()
66 *tmpx1++ = (mp_digit)(r & MP_MASK); in mp_dr_reduce()
66 *tmpc = ((*tmpc << d) | r) & MP_MASK; in mp_mul_2d()
81 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) macro261 *tmpc++ &= MP_MASK; in s_mp_add()276 *tmpc++ &= MP_MASK; in s_mp_add()335 *tmpc++ &= MP_MASK; in s_mp_sub()347 *tmpc++ &= MP_MASK; in s_mp_sub()970 a->dp[0] = (*b & MP_MASK); in mp_read_unsigned_bin()1312 a->dp[0] = b & MP_MASK; in mp_set()1415 *tmpc = ((*tmpc << d) | r) & MP_MASK; in mp_mul_2d()1772 if (tmp > (mp_word) MP_MASK) in mp_div()1773 tmp = MP_MASK; in mp_div()[all …]
22 a.dp[y] = MP_MASK; in main()33 if (a.dp[0] >= MP_MASK) break; in main()
30 if (z > MP_MASK) { in main()
280 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK); in fast_mp_montgomery_reduce()351 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK)); in fast_mp_montgomery_reduce()457 W[ix] = ((mp_digit)_W) & MP_MASK; in fast_s_mp_mul_digs()558 W[ix] = ((mp_digit)_W) & MP_MASK; in fast_s_mp_mul_high_digs()678 W[ix] = (mp_digit)(_W & MP_MASK); in fast_s_mp_sqr()692 *tmpb++ = W[ix] & MP_MASK; in fast_s_mp_sqr()935 *tmpc++ &= MP_MASK; in mp_add_d()941 *tmpc++ &= MP_MASK; in mp_add_d()1754 if (tmp > (mp_word) MP_MASK) in mp_div()1755 tmp = MP_MASK; in mp_div()[all …]
58 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) macro221 *tmpc++ &= MP_MASK; in s_mp_add()236 *tmpc++ &= MP_MASK; in s_mp_add()295 *tmpc++ &= MP_MASK; in s_mp_sub()307 *tmpc++ &= MP_MASK; in s_mp_sub()922 a->dp[0] = (*b & MP_MASK); in mp_read_unsigned_bin()1262 a->dp[0] = b & MP_MASK; in mp_set()1363 *tmpc = ((*tmpc << d) | r) & MP_MASK; in mp_mul_2d()2115 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_digs()2193 W[ix] = ((mp_digit)_W) & MP_MASK; in fast_s_mp_mul_digs()[all …]