/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | numbertheory.h | 43 int modnum; member 50 mpd_uint_t _mpd_getkernel(mpd_uint_t n, int sign, int modnum); 51 struct fnt_params *_mpd_init_fnt_params(mpd_size_t n, int sign, int modnum); 52 void _mpd_init_w3table(mpd_uint_t w3table[3], int sign, int modnum); 57 ppro_setmodulus(int modnum, mpd_uint_t *umod, double *dmod, uint32_t dinvmod[3]) in ppro_setmodulus() argument 59 *dmod = *umod = mpd_moduli[modnum]; in ppro_setmodulus() 60 dinvmod[0] = mpd_invmoduli[modnum][0]; in ppro_setmodulus() 61 dinvmod[1] = mpd_invmoduli[modnum][1]; in ppro_setmodulus() 62 dinvmod[2] = mpd_invmoduli[modnum][2]; in ppro_setmodulus() 66 std_setmodulus(int modnum, mpd_uint_t *umod) in std_setmodulus() argument [all …]
|
D | numbertheory.c | 48 _mpd_getkernel(mpd_uint_t n, int sign, int modnum) in _mpd_getkernel() argument 56 SETMODULUS(modnum); in _mpd_getkernel() 57 r = mpd_roots[modnum]; /* primitive root of F(p) */ in _mpd_getkernel() 74 _mpd_init_fnt_params(mpd_size_t n, int sign, int modnum) in _mpd_init_fnt_params() argument 88 assert(P1 <= modnum && modnum <= P3); in _mpd_init_fnt_params() 96 SETMODULUS(modnum); in _mpd_init_fnt_params() 97 kernel = _mpd_getkernel(n, sign, modnum); in _mpd_init_fnt_params() 99 tparams->modnum = modnum; in _mpd_init_fnt_params() 115 _mpd_init_w3table(mpd_uint_t w3table[3], int sign, int modnum) in _mpd_init_w3table() argument 124 SETMODULUS(modnum); in _mpd_init_w3table() [all …]
|
D | sixstep.c | 47 six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in six_step_fnt() argument 76 if ((tparams = _mpd_init_fnt_params(R, -1, modnum)) == NULL) { in six_step_fnt() 90 SETMODULUS(modnum); in six_step_fnt() 91 kernel = _mpd_getkernel(n, -1, modnum); in six_step_fnt() 109 if ((tparams = _mpd_init_fnt_params(C, -1, modnum)) == NULL) { in six_step_fnt() 132 inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_six_step_fnt() argument 164 if ((tparams = _mpd_init_fnt_params(C, 1, modnum)) == NULL) { in inv_six_step_fnt() 172 SETMODULUS(modnum); in inv_six_step_fnt() 173 kernel = _mpd_getkernel(n, 1, modnum); in inv_six_step_fnt() 197 if ((tparams = _mpd_init_fnt_params(R, 1, modnum)) == NULL) { in inv_six_step_fnt()
|
D | convolute.c | 47 fnt_convolute(mpd_uint_t *c1, mpd_uint_t *c2, mpd_size_t n, int modnum) in fnt_convolute() argument 59 SETMODULUS(modnum); in fnt_convolute() 77 if (!fnt(c1, n, modnum)) { in fnt_convolute() 80 if (!fnt(c2, n, modnum)) { in fnt_convolute() 93 if (!inv_fnt(c1, n, modnum)) { in fnt_convolute() 114 fnt_autoconvolute(mpd_uint_t *c1, mpd_size_t n, int modnum) in fnt_autoconvolute() argument 126 SETMODULUS(modnum); in fnt_autoconvolute() 144 if (!fnt(c1, n, modnum)) { in fnt_autoconvolute() 155 if (!inv_fnt(c1, n, modnum)) { in fnt_autoconvolute()
|
D | fourstep.c | 137 four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in four_step_fnt() argument 157 SETMODULUS(modnum); in four_step_fnt() 158 _mpd_init_w3table(w3table, -1, modnum); in four_step_fnt() 165 kernel = _mpd_getkernel(n, -1, modnum); in four_step_fnt() 182 if (!six_step_fnt(s, C, modnum)) { in four_step_fnt() 198 inv_four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_four_step_fnt() argument 225 if (!inv_six_step_fnt(s, C, modnum)) { in inv_four_step_fnt() 231 SETMODULUS(modnum); in inv_four_step_fnt() 232 kernel = _mpd_getkernel(n, 1, modnum); in inv_four_step_fnt() 248 _mpd_init_w3table(w3table, 1, modnum); in inv_four_step_fnt()
|
D | constants.h | 47 #define SETMODULUS(modnum) std_setmodulus(modnum, &umod) argument 55 #define SETMODULUS(modnum) ppro_setmodulus(modnum, &umod, &dmod, dinvmod) 63 #define SETMODULUS(modnum) std_setmodulus(modnum, &umod)
|
D | fnt.c | 44 std_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_fnt() argument 52 if ((tparams = _mpd_init_fnt_params(n, -1, modnum)) == NULL) { in std_fnt() 63 std_inv_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_inv_fnt() argument 71 if ((tparams = _mpd_init_fnt_params(n, 1, modnum)) == NULL) { in std_inv_fnt()
|
D | fourstep.h | 41 int four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum); 42 int inv_four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
|
D | fnt.h | 41 int std_fnt(mpd_uint_t a[], mpd_size_t n, int modnum); 42 int std_inv_fnt(mpd_uint_t a[], mpd_size_t n, int modnum);
|
D | sixstep.h | 41 int six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum); 42 int inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
|
D | convolute.h | 43 int fnt_convolute(mpd_uint_t *c1, mpd_uint_t *c2, mpd_size_t n, int modnum); 44 int fnt_autoconvolute(mpd_uint_t *c1, mpd_size_t n, int modnum);
|
D | difradix2.c | 90 SETMODULUS(tparams->modnum); in fnt_dif2()
|