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.c50 _mpd_getkernel(mpd_uint_t n, int sign, int modnum) in _mpd_getkernel() argument
58 SETMODULUS(modnum); in _mpd_getkernel()
59 r = mpd_roots[modnum]; /* primitive root of F(p) */ in _mpd_getkernel()
76 _mpd_init_fnt_params(mpd_size_t n, int sign, int modnum) in _mpd_init_fnt_params() argument
90 assert(P1 <= modnum && modnum <= P3); in _mpd_init_fnt_params()
98 SETMODULUS(modnum); in _mpd_init_fnt_params()
99 kernel = _mpd_getkernel(n, sign, modnum); in _mpd_init_fnt_params()
101 tparams->modnum = modnum; in _mpd_init_fnt_params()
117 _mpd_init_w3table(mpd_uint_t w3table[3], int sign, int modnum) in _mpd_init_w3table() argument
126 SETMODULUS(modnum); in _mpd_init_w3table()
[all …]
Dsixstep.c49 six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in six_step_fnt() argument
78 if ((tparams = _mpd_init_fnt_params(R, -1, modnum)) == NULL) { in six_step_fnt()
92 SETMODULUS(modnum); in six_step_fnt()
93 kernel = _mpd_getkernel(n, -1, modnum); in six_step_fnt()
111 if ((tparams = _mpd_init_fnt_params(C, -1, modnum)) == NULL) { in six_step_fnt()
134 inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_six_step_fnt() argument
166 if ((tparams = _mpd_init_fnt_params(C, 1, modnum)) == NULL) { in inv_six_step_fnt()
174 SETMODULUS(modnum); in inv_six_step_fnt()
175 kernel = _mpd_getkernel(n, 1, modnum); in inv_six_step_fnt()
199 if ((tparams = _mpd_init_fnt_params(R, 1, modnum)) == NULL) { in inv_six_step_fnt()
Dconvolute.c46 fnt_convolute(mpd_uint_t *c1, mpd_uint_t *c2, mpd_size_t n, int modnum) in fnt_convolute() argument
58 SETMODULUS(modnum); in fnt_convolute()
76 if (!fnt(c1, n, modnum)) { in fnt_convolute()
79 if (!fnt(c2, n, modnum)) { in fnt_convolute()
92 if (!inv_fnt(c1, n, modnum)) { in fnt_convolute()
113 fnt_autoconvolute(mpd_uint_t *c1, mpd_size_t n, int modnum) in fnt_autoconvolute() argument
125 SETMODULUS(modnum); in fnt_autoconvolute()
143 if (!fnt(c1, n, modnum)) { in fnt_autoconvolute()
154 if (!inv_fnt(c1, n, modnum)) { in fnt_autoconvolute()
Dfourstep.c139 four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in four_step_fnt() argument
159 SETMODULUS(modnum); in four_step_fnt()
160 _mpd_init_w3table(w3table, -1, modnum); in four_step_fnt()
167 kernel = _mpd_getkernel(n, -1, modnum); in four_step_fnt()
184 if (!six_step_fnt(s, C, modnum)) { in four_step_fnt()
201 inv_four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_four_step_fnt() argument
229 if (!inv_six_step_fnt(s, C, modnum)) { in inv_four_step_fnt()
235 SETMODULUS(modnum); in inv_four_step_fnt()
236 kernel = _mpd_getkernel(n, 1, modnum); in inv_four_step_fnt()
252 _mpd_init_w3table(w3table, 1, modnum); in inv_four_step_fnt()
Dconstants.h49 #define SETMODULUS(modnum) std_setmodulus(modnum, &umod) argument
57 #define SETMODULUS(modnum) ppro_setmodulus(modnum, &umod, &dmod, dinvmod)
65 #define SETMODULUS(modnum) std_setmodulus(modnum, &umod)
Dfnt.c45 std_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_fnt() argument
53 if ((tparams = _mpd_init_fnt_params(n, -1, modnum)) == NULL) { in std_fnt()
64 std_inv_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_inv_fnt() argument
72 if ((tparams = _mpd_init_fnt_params(n, 1, modnum)) == NULL) { in std_inv_fnt()
Dsixstep.h40 int six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
41 int inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
Dfnt.h40 int std_fnt(mpd_uint_t a[], mpd_size_t n, int modnum);
41 int std_inv_fnt(mpd_uint_t a[], mpd_size_t n, int modnum);
Dfourstep.h40 int four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
41 int inv_four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
Dconvolute.h42 int fnt_convolute(mpd_uint_t *c1, mpd_uint_t *c2, mpd_size_t n, int modnum);
43 int fnt_autoconvolute(mpd_uint_t *c1, mpd_size_t n, int modnum);
Ddifradix2.c92 SETMODULUS(tparams->modnum); in fnt_dif2()