Home
last modified time | relevance | path

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

/third_party/python/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);
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);
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);
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()
/third_party/openssl/crypto/bn/
Drsa_sup_mul.c327 static ossl_inline size_t mod_limb_numb(size_t anum, size_t modnum) in mod_limb_numb() argument
329 return (anum + modnum) * 3; in mod_limb_numb()
338 size_t modnum, limb_t *tmp) in mod() argument
344 memset(tmp, 0, mod_limb_numb(anum, modnum) * LIMB_BYTE_SIZE); in mod()
347 modtmp = &tmp[anum + modnum]; in mod()
348 rettmp = &tmp[(anum + modnum) * 2]; in mod()
350 for (i = modnum; i <modnum + anum; i++) in mod()
351 atmp[i] = a[i-modnum]; in mod()
353 for (i = 0; i < modnum; i++) in mod()
357 rshift1(modtmp, anum + modnum); in mod()
[all …]