/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.h | 137 typedef int64_t mpd_ssize_t; typedef 182 typedef int32_t mpd_ssize_t; typedef 243 mpd_ssize_t prec; /* precision */ 244 mpd_ssize_t emax; /* max positive exp */ 245 mpd_ssize_t emin; /* min negative exp */ 303 extern mpd_ssize_t MPD_MINALLOC; 307 void mpd_setminalloc(mpd_ssize_t n); 308 void mpd_init(mpd_context_t *ctx, mpd_ssize_t prec); 315 mpd_ssize_t mpd_getprec(const mpd_context_t *ctx); 316 mpd_ssize_t mpd_getemax(const mpd_context_t *ctx); [all …]
|
D | context.c | 51 mpd_setminalloc(mpd_ssize_t n) in mpd_setminalloc() 68 mpd_init(mpd_context_t *ctx, mpd_ssize_t prec) in mpd_init() 70 mpd_ssize_t ideal_minalloc; in mpd_init() 136 ctx->emax = 3 * ((mpd_ssize_t)1<<(bits/16+3)); in mpd_ieee_context() 148 mpd_ssize_t 154 mpd_ssize_t 160 mpd_ssize_t 198 mpd_qsetprec(mpd_context_t *ctx, mpd_ssize_t prec) in mpd_qsetprec() 208 mpd_qsetemax(mpd_context_t *ctx, mpd_ssize_t emax) in mpd_qsetemax() 218 mpd_qsetemin(mpd_context_t *ctx, mpd_ssize_t emin) in mpd_qsetemin()
|
D | io.c | 75 static mpd_ssize_t 79 mpd_ssize_t retval; in strtoexp() 202 mpd_ssize_t q, r, len; in mpd_qset_string() 288 if (dec->exp < MPD_SSIZE_MIN+(mpd_ssize_t)fracdigits) { in mpd_qset_string() 292 dec->exp -= (mpd_ssize_t)fracdigits; in mpd_qset_string() 306 _mpd_idiv_word(&q, &r, (mpd_ssize_t)digits, MPD_RDIGITS); in mpd_qset_string() 383 exp_to_string(char *s, mpd_ssize_t x) in exp_to_string() 401 mpd_ssize_t i; in coeff_to_string() 422 mpd_ssize_t i; in coeff_to_string_dot() 461 static mpd_ssize_t [all …]
|
D | mpalloc.h | 42 int mpd_switch_to_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status); 43 int mpd_switch_to_dyn_zero(mpd_t *result, mpd_ssize_t nwords, uint32_t *status); 44 int mpd_realloc_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status); 46 int mpd_switch_to_dyn_cxx(mpd_t *result, mpd_ssize_t nwords); 47 int mpd_realloc_dyn_cxx(mpd_t *result, mpd_ssize_t nwords);
|
D | mpdecimal.c | 107 mpd_ssize_t exp); 108 static inline mpd_ssize_t _mpd_real_size(mpd_uint_t *data, mpd_ssize_t size); 122 static mpd_uint_t mpd_qsshiftr(mpd_t *result, const mpd_t *a, mpd_ssize_t n); 201 ALWAYS_INLINE mpd_ssize_t 208 ALWAYS_INLINE mpd_ssize_t 215 ALWAYS_INLINE mpd_ssize_t 247 mpd_ssize_t 248 mpd_digits_to_size(mpd_ssize_t digits) in mpd_digits_to_size() 250 mpd_ssize_t q, r; in mpd_digits_to_size() 258 mpd_exp_digits(mpd_ssize_t exp) in mpd_exp_digits() [all …]
|
D | mpalloc.c | 47 mpd_ssize_t MPD_MINALLOC = MPD_MINALLOC_MIN; 154 mpd_qnew_size(mpd_ssize_t nwords) in mpd_qnew_size() 211 mpd_switch_to_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_switch_to_dyn() 240 mpd_switch_to_dyn_zero(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_switch_to_dyn_zero() 275 mpd_realloc_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_realloc_dyn() 304 mpd_switch_to_dyn_cxx(mpd_t *result, mpd_ssize_t nwords) in mpd_switch_to_dyn_cxx() 335 mpd_realloc_dyn_cxx(mpd_t *result, mpd_ssize_t nwords) in mpd_realloc_dyn_cxx()
|
D | io.h | 43 static inline mpd_ssize_t 57 return (mpd_ssize_t)retval; in mpd_strtossize()
|
D | typearith.h | 575 _mpd_idiv_word(mpd_ssize_t *q, mpd_ssize_t *r, mpd_ssize_t v, mpd_ssize_t d) in _mpd_idiv_word() 648 static inline mpd_ssize_t 649 mod_mpd_ssize_t(mpd_ssize_t a, mpd_ssize_t m) in mod_mpd_ssize_t() 651 mpd_ssize_t r = a % m; in mod_mpd_ssize_t()
|
D | mpsignal.c | 136 mpd_sset_ssize(mpd_t *result, mpd_ssize_t a, mpd_context_t *ctx) in mpd_sset_ssize() 190 mpd_set_ssize(mpd_t *result, mpd_ssize_t a, mpd_context_t *ctx) in mpd_set_ssize() 243 mpd_ssize_t 247 mpd_ssize_t ret; in mpd_get_ssize() 415 mpd_shiftl(mpd_t *result, const mpd_t *a, mpd_ssize_t n, mpd_context_t *ctx) in mpd_shiftl() 423 mpd_shiftr(mpd_t *result, const mpd_t *a, mpd_ssize_t n, mpd_context_t *ctx) in mpd_shiftr() 434 mpd_shiftn(mpd_t *result, const mpd_t *a, mpd_ssize_t n, mpd_context_t *ctx) in mpd_shiftn() 512 mpd_add_ssize(mpd_t *result, const mpd_t *a, mpd_ssize_t b, mpd_context_t *ctx) in mpd_add_ssize() 564 mpd_sub_ssize(mpd_t *result, const mpd_t *a, mpd_ssize_t b, mpd_context_t *ctx) in mpd_sub_ssize() 624 mpd_div_ssize(mpd_t *result, const mpd_t *a, mpd_ssize_t b, mpd_context_t *ctx) in mpd_div_ssize() [all …]
|
D | basearith.h | 161 _mpd_mul_2_le2(mpd_uint_t w[4], mpd_uint_t u[2], mpd_uint_t v[2], mpd_ssize_t m) in _mpd_mul_2_le2() 193 _mpd_isallzero(const mpd_uint_t *data, mpd_ssize_t len) in _mpd_isallzero() 206 _mpd_isallnine(const mpd_uint_t *data, mpd_ssize_t len) in _mpd_isallnine()
|
D | bench_full.c | 119 mpd_ssize_t prec = 19; in main()
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 788 mpd_ssize_t x; in context_setprec() 808 mpd_ssize_t x; in context_setemin() 828 mpd_ssize_t x; in context_setemax() 849 mpd_ssize_t x; in context_unsafe_setprec() 869 mpd_ssize_t x; in context_unsafe_setemin() 889 mpd_ssize_t x; in context_unsafe_setemax() 928 mpd_ssize_t x; in context_setcapitals() 1076 mpd_ssize_t x; in context_setclamp() 1097 mpd_ssize_t x; in context_setallcr() 1382 mpd_ssize_t bits; in ieee_context() [all …]
|