/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | basearith.h | 43 mpd_size_t m, mpd_size_t n); 44 void _mpd_baseaddto(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n); 45 mpd_uint_t _mpd_shortadd(mpd_uint_t *w, mpd_size_t m, mpd_uint_t v); 46 mpd_uint_t _mpd_shortadd_b(mpd_uint_t *w, mpd_size_t m, mpd_uint_t v, 48 mpd_uint_t _mpd_baseincr(mpd_uint_t *u, mpd_size_t n); 50 mpd_size_t m, mpd_size_t n); 51 void _mpd_basesubfrom(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n); 53 mpd_size_t m, mpd_size_t n); 54 void _mpd_shortmul(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n, 56 mpd_uint_t _mpd_shortmul_c(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n, [all …]
|
D | transpose.c | 51 std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t cols) in std_trans() 53 mpd_size_t idest, isrc; in std_trans() 54 mpd_size_t r, c; in std_trans() 73 swap_halfrows_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols, int dir) in swap_halfrows_pow2() 78 mpd_size_t *done, dbits; in swap_halfrows_pow2() 79 mpd_size_t b = BUFSIZE, stride; in swap_halfrows_pow2() 80 mpd_size_t hn, hmax; /* halfrow number */ in swap_halfrows_pow2() 81 mpd_size_t m, r=0; in swap_halfrows_pow2() 82 mpd_size_t offset; in swap_halfrows_pow2() 83 mpd_size_t next; in swap_halfrows_pow2() [all …]
|
D | basearith.c | 52 mpd_size_t m, mpd_size_t n) in _mpd_baseadd() 56 mpd_size_t i; in _mpd_baseadd() 85 _mpd_baseaddto(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n) in _mpd_baseaddto() 89 mpd_size_t i; in _mpd_baseaddto() 112 _mpd_shortadd(mpd_uint_t *w, mpd_size_t m, mpd_uint_t v) in _mpd_shortadd() 116 mpd_size_t i; in _mpd_shortadd() 137 _mpd_baseincr(mpd_uint_t *u, mpd_size_t n) in _mpd_baseincr() 141 mpd_size_t i; in _mpd_baseincr() 162 mpd_size_t m, mpd_size_t n) in _mpd_basesub() 166 mpd_size_t i; in _mpd_basesub() [all …]
|
D | memory.c | 58 mpd_size_t overflow; in mpd_callocfunc_em() 67 req = mul_size_t_overflow((mpd_size_t)nmemb, (mpd_size_t)size, in mpd_callocfunc_em() 86 mpd_alloc(mpd_size_t nmemb, mpd_size_t size) in mpd_alloc() 88 mpd_size_t req, overflow; in mpd_alloc() 100 mpd_calloc(mpd_size_t nmemb, mpd_size_t size) in mpd_calloc() 102 mpd_size_t overflow; in mpd_calloc() 114 mpd_realloc(void *ptr, mpd_size_t nmemb, mpd_size_t size, uint8_t *err) in mpd_realloc() 117 mpd_size_t req, overflow; in mpd_realloc() 136 mpd_sh_alloc(mpd_size_t struct_size, mpd_size_t nmemb, mpd_size_t size) in mpd_sh_alloc() 138 mpd_size_t req, overflow; in mpd_sh_alloc()
|
D | bits.h | 39 ispower2(mpd_size_t n) in ispower2() 50 mpd_bsr(mpd_size_t n) in mpd_bsr() 53 mpd_size_t tmp; in mpd_bsr() 78 mpd_bsf(mpd_size_t n) in mpd_bsf() 107 mpd_bsr(mpd_size_t a) in mpd_bsr() 109 mpd_size_t retval; in mpd_bsr() 129 mpd_bsf(mpd_size_t a) in mpd_bsf() 131 mpd_size_t retval; in mpd_bsf() 154 mpd_bsr(mpd_size_t a) in mpd_bsr() 171 mpd_bsf(mpd_size_t a) in mpd_bsf()
|
D | transpose.h | 44 void std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t cols); 45 int transpose_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols); 46 void transpose_3xpow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols);
|
D | sixstep.c | 47 six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in six_step_fnt() 50 mpd_size_t log2n, C, R; in six_step_fnt() 58 mpd_size_t i, k; in six_step_fnt() 66 C = ((mpd_size_t)1) << (log2n / 2); /* number of columns */ in six_step_fnt() 67 R = ((mpd_size_t)1) << (log2n - (log2n / 2)); /* number of rows */ in six_step_fnt() 132 inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_six_step_fnt() 135 mpd_size_t log2n, C, R; in inv_six_step_fnt() 143 mpd_size_t i, k; in inv_six_step_fnt() 151 C = ((mpd_size_t)1) << (log2n / 2); /* number of columns */ in inv_six_step_fnt() 152 R = ((mpd_size_t)1) << (log2n - (log2n / 2)); /* number of rows */ in inv_six_step_fnt()
|
D | typearith.h | 591 static inline mpd_size_t 592 add_size_t(mpd_size_t a, mpd_size_t b) in add_size_t() 600 static inline mpd_size_t 601 sub_size_t(mpd_size_t a, mpd_size_t b) in sub_size_t() 613 static inline mpd_size_t 614 mul_size_t(mpd_size_t a, mpd_size_t b) in mul_size_t() 625 static inline mpd_size_t 626 add_size_t_overflow(mpd_size_t a, mpd_size_t b, mpd_size_t *overflow) in add_size_t_overflow() 628 mpd_size_t ret; in add_size_t_overflow() 636 static inline mpd_size_t [all …]
|
D | convolute.c | 47 fnt_convolute(mpd_uint_t *c1, mpd_uint_t *c2, mpd_size_t n, int modnum) in fnt_convolute() 49 int (*fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_convolute() 50 int (*inv_fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_convolute() 56 mpd_size_t i; in fnt_convolute() 114 fnt_autoconvolute(mpd_uint_t *c1, mpd_size_t n, int modnum) in fnt_autoconvolute() 116 int (*fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_autoconvolute() 117 int (*inv_fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_autoconvolute() 123 mpd_size_t i; in fnt_autoconvolute()
|
D | fourstep.c | 137 four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in four_step_fnt() 139 mpd_size_t R = 3; /* number of rows */ in four_step_fnt() 140 mpd_size_t C = n / 3; /* number of columns */ in four_step_fnt() 149 mpd_size_t i, k; in four_step_fnt() 198 inv_four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_four_step_fnt() 200 mpd_size_t R = 3; /* number of rows */ in inv_four_step_fnt() 201 mpd_size_t C = n / 3; /* number of columns */ in inv_four_step_fnt() 210 mpd_size_t i, k; in inv_four_step_fnt()
|
D | difradix2.c | 48 bitreverse_permute(mpd_uint_t a[], mpd_size_t n) in bitreverse_permute() 50 mpd_size_t x = 0; in bitreverse_permute() 51 mpd_size_t r = 0; in bitreverse_permute() 73 fnt_dif2(mpd_uint_t a[], mpd_size_t n, struct fnt_params *tparams) in fnt_dif2() 83 mpd_size_t m, mhalf; in fnt_dif2() 84 mpd_size_t j, r; in fnt_dif2()
|
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 | 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 | 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 | 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 | constants.c | 49 const mpd_size_t mpd_bits[64] = { 99 const mpd_size_t mpd_bits[32] = {
|
D | fnt.c | 44 std_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_fnt() 63 std_inv_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_inv_fnt()
|
D | numbertheory.c | 74 _mpd_init_fnt_params(mpd_size_t n, int sign, int modnum) in _mpd_init_fnt_params() 84 mpd_size_t nhalf; in _mpd_init_fnt_params()
|
D | mpdecimal.h | 152 typedef size_t mpd_size_t; /* unsigned size type */ typedef 196 typedef size_t mpd_size_t; /* unsigned size type */ typedef 813 void *mpd_alloc(mpd_size_t nmemb, mpd_size_t size); 814 void *mpd_calloc(mpd_size_t nmemb, mpd_size_t size); 815 void *mpd_realloc(void *ptr, mpd_size_t nmemb, mpd_size_t size, uint8_t *err); 816 void *mpd_sh_alloc(mpd_size_t struct_size, mpd_size_t nmemb, mpd_size_t size); 823 EXTINLINE void mpd_uint_zero(mpd_uint_t *dest, mpd_size_t len);
|
D | crt.c | 132 crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t rsize) in crt3() 145 mpd_size_t i; in crt3()
|
D | difradix2.h | 42 void fnt_dif2(mpd_uint_t a[], mpd_size_t n, struct fnt_params *tparams);
|
D | crt.h | 41 void crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t nmemb);
|
D | mpdecimal.c | 449 mpd_uint_zero(mpd_uint_t *dest, mpd_size_t len) in mpd_uint_zero() 451 mpd_size_t i; in mpd_uint_zero() 2055 _mpd_basecmp(mpd_uint_t *big, mpd_uint_t *small, mpd_size_t n, mpd_size_t m, in _mpd_basecmp() 2056 mpd_size_t shift) in _mpd_basecmp() 5252 static inline mpd_size_t 5253 _kmul_resultsize(mpd_size_t la, mpd_size_t lb) in _kmul_resultsize() 5255 mpd_size_t n, m; in _kmul_resultsize() 5267 static inline mpd_size_t 5268 _kmul_worksize(mpd_size_t n, mpd_size_t lim) in _kmul_worksize() 5270 mpd_size_t m; in _kmul_worksize() [all …]
|
D | numbertheory.h | 51 struct fnt_params *_mpd_init_fnt_params(mpd_size_t n, int sign, int modnum);
|
D | constants.h | 75 extern const mpd_size_t mpd_bits[];
|