/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | basearith.h | 42 mpd_size_t m, mpd_size_t n); 43 void _mpd_baseaddto(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n); 44 mpd_uint_t _mpd_shortadd(mpd_uint_t *w, mpd_size_t m, mpd_uint_t v); 45 mpd_uint_t _mpd_shortadd_b(mpd_uint_t *w, mpd_size_t m, mpd_uint_t v, 47 mpd_uint_t _mpd_baseincr(mpd_uint_t *u, mpd_size_t n); 49 mpd_size_t m, mpd_size_t n); 50 void _mpd_basesubfrom(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n); 52 mpd_size_t m, mpd_size_t n); 53 void _mpd_shortmul(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n, 55 mpd_uint_t _mpd_shortmul_c(mpd_uint_t *w, const mpd_uint_t *u, mpd_size_t n, [all …]
|
D | transpose.c | 53 std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t cols) in std_trans() 55 mpd_size_t idest, isrc; in std_trans() 56 mpd_size_t r, c; in std_trans() 75 swap_halfrows_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols, int dir) in swap_halfrows_pow2() 80 mpd_size_t *done, dbits; in swap_halfrows_pow2() 81 mpd_size_t b = BUFSIZE, stride; in swap_halfrows_pow2() 82 mpd_size_t hn, hmax; /* halfrow number */ in swap_halfrows_pow2() 83 mpd_size_t m, r=0; in swap_halfrows_pow2() 84 mpd_size_t offset; in swap_halfrows_pow2() 85 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 | mpalloc.c | 62 mpd_size_t overflow; in mpd_callocfunc_em() 64 req = mul_size_t_overflow((mpd_size_t)nmemb, (mpd_size_t)size, in mpd_callocfunc_em() 83 mpd_alloc(mpd_size_t nmemb, mpd_size_t size) in mpd_alloc() 85 mpd_size_t req, overflow; in mpd_alloc() 97 mpd_calloc(mpd_size_t nmemb, mpd_size_t size) in mpd_calloc() 99 mpd_size_t overflow; in mpd_calloc() 111 mpd_realloc(void *ptr, mpd_size_t nmemb, mpd_size_t size, uint8_t *err) in mpd_realloc() 114 mpd_size_t req, overflow; in mpd_realloc() 133 mpd_sh_alloc(mpd_size_t struct_size, mpd_size_t nmemb, mpd_size_t size) in mpd_sh_alloc() 135 mpd_size_t req, overflow; in mpd_sh_alloc()
|
D | bits.h | 38 ispower2(mpd_size_t n) in ispower2() 49 mpd_bsr(mpd_size_t n) in mpd_bsr() 52 mpd_size_t tmp; in mpd_bsr() 77 mpd_bsf(mpd_size_t n) in mpd_bsf() 106 mpd_bsr(mpd_size_t a) in mpd_bsr() 108 mpd_size_t retval; in mpd_bsr() 128 mpd_bsf(mpd_size_t a) in mpd_bsf() 130 mpd_size_t retval; in mpd_bsf() 153 mpd_bsr(mpd_size_t a) in mpd_bsr() 170 mpd_bsf(mpd_size_t a) in mpd_bsf()
|
D | transpose.h | 43 void std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t cols); 44 int transpose_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols); 45 void transpose_3xpow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols);
|
D | sixstep.c | 49 six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in six_step_fnt() 52 mpd_size_t log2n, C, R; in six_step_fnt() 60 mpd_size_t i, k; in six_step_fnt() 68 C = ((mpd_size_t)1) << (log2n / 2); /* number of columns */ in six_step_fnt() 69 R = ((mpd_size_t)1) << (log2n - (log2n / 2)); /* number of rows */ in six_step_fnt() 134 inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_six_step_fnt() 137 mpd_size_t log2n, C, R; in inv_six_step_fnt() 145 mpd_size_t i, k; in inv_six_step_fnt() 153 C = ((mpd_size_t)1) << (log2n / 2); /* number of columns */ in inv_six_step_fnt() 154 R = ((mpd_size_t)1) << (log2n - (log2n / 2)); /* number of rows */ in inv_six_step_fnt()
|
D | typearith.h | 593 static inline mpd_size_t 594 add_size_t(mpd_size_t a, mpd_size_t b) in add_size_t() 602 static inline mpd_size_t 603 sub_size_t(mpd_size_t a, mpd_size_t b) in sub_size_t() 615 static inline mpd_size_t 616 mul_size_t(mpd_size_t a, mpd_size_t b) in mul_size_t() 627 static inline mpd_size_t 628 add_size_t_overflow(mpd_size_t a, mpd_size_t b, mpd_size_t *overflow) in add_size_t_overflow() 630 mpd_size_t ret; in add_size_t_overflow() 638 static inline mpd_size_t [all …]
|
D | convolute.c | 46 fnt_convolute(mpd_uint_t *c1, mpd_uint_t *c2, mpd_size_t n, int modnum) in fnt_convolute() 48 int (*fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_convolute() 49 int (*inv_fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_convolute() 55 mpd_size_t i; in fnt_convolute() 113 fnt_autoconvolute(mpd_uint_t *c1, mpd_size_t n, int modnum) in fnt_autoconvolute() 115 int (*fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_autoconvolute() 116 int (*inv_fnt)(mpd_uint_t *, mpd_size_t, int); in fnt_autoconvolute() 122 mpd_size_t i; in fnt_autoconvolute()
|
D | difradix2.c | 50 bitreverse_permute(mpd_uint_t a[], mpd_size_t n) in bitreverse_permute() 52 mpd_size_t x = 0; in bitreverse_permute() 53 mpd_size_t r = 0; in bitreverse_permute() 75 fnt_dif2(mpd_uint_t a[], mpd_size_t n, struct fnt_params *tparams) in fnt_dif2() 85 mpd_size_t m, mhalf; in fnt_dif2() 86 mpd_size_t j, r; in fnt_dif2()
|
D | fourstep.c | 139 four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in four_step_fnt() 141 mpd_size_t R = 3; /* number of rows */ in four_step_fnt() 142 mpd_size_t C = n / 3; /* number of columns */ in four_step_fnt() 151 mpd_size_t i, k; in four_step_fnt() 201 inv_four_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in inv_four_step_fnt() 203 mpd_size_t R = 3; /* number of rows */ in inv_four_step_fnt() 204 mpd_size_t C = n / 3; /* number of columns */ in inv_four_step_fnt() 213 mpd_size_t i, k; in inv_four_step_fnt()
|
D | sixstep.h | 40 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);
|
D | fourstep.h | 40 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);
|
D | fnt.h | 40 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);
|
D | convolute.h | 42 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);
|
D | constants.c | 49 const mpd_size_t mpd_bits[64] = { 99 const mpd_size_t mpd_bits[32] = {
|
D | fnt.c | 45 std_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_fnt() 64 std_inv_fnt(mpd_uint_t *a, mpd_size_t n, int modnum) in std_inv_fnt()
|
D | numbertheory.c | 76 _mpd_init_fnt_params(mpd_size_t n, int sign, int modnum) in _mpd_init_fnt_params() 86 mpd_size_t nhalf; in _mpd_init_fnt_params()
|
D | crt.c | 135 crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t rsize) in crt3() 148 mpd_size_t i; in crt3()
|
D | mpdecimal.h | 132 typedef size_t mpd_size_t; /* unsigned size type */ typedef 177 typedef size_t mpd_size_t; /* unsigned size type */ typedef 820 void *mpd_alloc(mpd_size_t nmemb, mpd_size_t size); 821 void *mpd_calloc(mpd_size_t nmemb, mpd_size_t size); 822 void *mpd_realloc(void *ptr, mpd_size_t nmemb, mpd_size_t size, uint8_t *err); 823 void *mpd_sh_alloc(mpd_size_t struct_size, mpd_size_t nmemb, mpd_size_t size); 830 EXTINLINE void mpd_uint_zero(mpd_uint_t *dest, mpd_size_t len);
|
D | difradix2.h | 41 void fnt_dif2(mpd_uint_t a[], mpd_size_t n, struct fnt_params *tparams);
|
D | crt.h | 40 void crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t rsize);
|
D | numbertheory.h | 51 struct fnt_params *_mpd_init_fnt_params(mpd_size_t n, int sign, int modnum);
|
D | mpdecimal.c | 453 mpd_uint_zero(mpd_uint_t *dest, mpd_size_t len) in mpd_uint_zero() 455 mpd_size_t i; in mpd_uint_zero() 2151 _mpd_basecmp(mpd_uint_t *big, mpd_uint_t *small, mpd_size_t n, mpd_size_t m, in _mpd_basecmp() 2152 mpd_size_t shift) in _mpd_basecmp() 5414 static inline mpd_size_t 5415 _kmul_resultsize(mpd_size_t la, mpd_size_t lb) in _kmul_resultsize() 5417 mpd_size_t n, m; in _kmul_resultsize() 5429 static inline mpd_size_t 5430 _kmul_worksize(mpd_size_t n, mpd_size_t lim) in _kmul_worksize() 5432 mpd_size_t m; in _kmul_worksize() [all …]
|
D | constants.h | 77 extern const mpd_size_t mpd_bits[];
|