Lines Matching defs:mp_digit
153 /* We only use unsigned long for mp_digit iff long is more than 32 bits. */
155 typedef unsigned long mp_digit;
166 typedef unsigned long long mp_digit;
177 typedef unsigned int mp_digit;
217 #define MP_DIGIT_BIT (CHAR_BIT*sizeof(mp_digit))
222 #define MP_HALF_RADIX (1+(mp_digit)MP_HALF_DIGIT_MAX)
245 mp_digit *dp; /* the digits themselves */
260 void mp_set(mp_int *mp, mp_digit d);
266 mp_err mp_add_d(const mp_int *a, mp_digit d, mp_int *b);
267 mp_err mp_sub_d(const mp_int *a, mp_digit d, mp_int *b);
268 mp_err mp_mul_d(const mp_int *a, mp_digit d, mp_int *b);
270 mp_err mp_div_d(const mp_int *a, mp_digit d, mp_int *q, mp_digit *r);
272 mp_err mp_expt_d(const mp_int *a, mp_digit d, mp_int *c);
288 mp_err mp_div_2d(const mp_int *a, mp_digit d, mp_int *q, mp_int *r);
290 mp_err mp_2expt(mp_int *a, mp_digit k);
296 mp_err mp_mod_d(const mp_int *a, mp_digit d, mp_digit *c);
306 mp_err mp_exptmod_d(const mp_int *a, mp_digit d, const mp_int *m, mp_int *c);
311 int mp_cmp_d(const mp_int *a, mp_digit d);