• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/tommath/

Lines Matching defs:mp_digit

37 /* C++ compilers don't like assigning void * to mp_digit * */
57 * A "mp_digit" must be able to hold DIGIT_BIT + 1 bits
60 * At the very least a mp_digit must be able to hold 7 bits
64 typedef unsigned char mp_digit;
67 typedef unsigned short mp_digit;
76 typedef unsigned long mp_digit;
94 typedef unsigned long mp_digit;
125 /* otherwise the bits per digit is calculated automatically from the size of a mp_digit */
127 #define DIGIT_BIT ((int)((CHAR_BIT * sizeof(mp_digit) - 1))) /* bits per digit */
131 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1))
181 mp_digit *dp;
229 void mp_set(mp_int *a, mp_digit b);
238 int mp_init_set (mp_int * a, mp_digit b);
331 int mp_cmp_d(mp_int *a, mp_digit b);
334 int mp_add_d(mp_int *a, mp_digit b, mp_int *c);
337 int mp_sub_d(mp_int *a, mp_digit b, mp_int *c);
340 int mp_mul_d(mp_int *a, mp_digit b, mp_int *c);
343 int mp_div_d(mp_int *a, mp_digit b, mp_int *c, mp_digit *d);
346 int mp_div_3(mp_int *a, mp_int *c, mp_digit *d);
349 int mp_expt_d(mp_int *a, mp_digit b, mp_int *c);
352 int mp_mod_d(mp_int *a, mp_digit b, mp_digit *c);
384 int mp_n_root(mp_int *a, mp_digit b, mp_int *c);
406 int mp_montgomery_setup(mp_int *a, mp_digit *mp);
414 int mp_montgomery_reduce(mp_int *a, mp_int *m, mp_digit mp);
420 void mp_dr_setup(mp_int *a, mp_digit *d);
423 int mp_dr_reduce(mp_int *a, mp_int *b, mp_digit mp);
429 int mp_reduce_2k_setup(mp_int *a, mp_digit *d);
432 int mp_reduce_2k(mp_int *a, mp_int *n, mp_digit d);
456 extern const mp_digit ltm_prime_tab[];
567 int fast_mp_montgomery_reduce(mp_int *a, mp_int *m, mp_digit mp);