Home
last modified time | relevance | path

Searched refs:modnum (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython3/Modules/_decimal/libmpdec/
Dnumbertheory.h43 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 …]
Dnumbertheory.c48 _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 …]
Dsixstep.c47 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()
Dconvolute.c47 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()
Dfourstep.c137 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()
Dconstants.h47 #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)
Dfnt.c44 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()
Dfourstep.h41 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);
Dfnt.h41 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);
Dsixstep.h41 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);
Dconvolute.h43 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);
Ddifradix2.c90 SETMODULUS(tparams->modnum); in fnt_dif2()