Searched refs:mpd_t (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.h | 361 typedef struct mpd_t { struct 368 } mpd_t; typedef 392 char *mpd_to_sci(const mpd_t *dec, int fmt); 393 char *mpd_to_eng(const mpd_t *dec, int fmt); 394 mpd_ssize_t mpd_to_sci_size(char **res, const mpd_t *dec, int fmt); 395 mpd_ssize_t mpd_to_eng_size(char **res, const mpd_t *dec, int fmt); 398 char *mpd_qformat_spec(const mpd_t *dec, const mpd_spec_t *spec, const mpd_context_t *ctx, uint32_t… 399 char *mpd_qformat(const mpd_t *dec, const char *fmt, const mpd_context_t *ctx, uint32_t *status); 410 void mpd_fprint(FILE *file, const mpd_t *dec); 411 void mpd_print(const mpd_t *dec); [all …]
|
D | mpdecimal.c | 84 mpd_t name = {flags|MPD_STATIC|MPD_STATIC_DATA, exp, digits, \ 89 mpd_t name = {flags|MPD_STATIC|MPD_CONST_DATA, exp, digits, \ 93 mpd_t name = {(a->flags&~MPD_DATAFLAGS)|MPD_STATIC|MPD_SHARED_DATA, \ 99 static const mpd_t one = {MPD_STATIC|MPD_CONST_DATA, 0, 1, 1, 1, data_one}; 100 static const mpd_t minus_one = {MPD_NEG|MPD_STATIC|MPD_CONST_DATA, 0, 1, 1, 1, 102 static const mpd_t zero = {MPD_STATIC|MPD_CONST_DATA, 0, 1, 1, 1, data_zero}; 104 static inline void _mpd_check_exp(mpd_t *dec, const mpd_context_t *ctx, 106 static void _settriple(mpd_t *result, uint8_t sign, mpd_uint_t a, 110 static int _mpd_cmp_abs(const mpd_t *a, const mpd_t *b); 112 static void _mpd_qadd(mpd_t *result, const mpd_t *a, const mpd_t *b, [all …]
|
D | mpalloc.h | 42 int mpd_switch_to_dyn(mpd_t *result, mpd_ssize_t size, uint32_t *status); 43 int mpd_switch_to_dyn_zero(mpd_t *result, mpd_ssize_t size, uint32_t *status); 44 int mpd_realloc_dyn(mpd_t *result, mpd_ssize_t size, uint32_t *status); 46 int mpd_switch_to_dyn_cxx(mpd_t *result, mpd_ssize_t size); 47 int mpd_realloc_dyn_cxx(mpd_t *result, mpd_ssize_t size);
|
D | mpalloc.c | 160 mpd_t * 163 mpd_t *result; in mpd_qnew_size() 189 mpd_t * 197 mpd_t * 200 mpd_t *result; in mpd_new() 218 mpd_switch_to_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_switch_to_dyn() 247 mpd_switch_to_dyn_zero(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_switch_to_dyn_zero() 282 mpd_realloc_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_realloc_dyn() 311 mpd_switch_to_dyn_cxx(mpd_t *result, mpd_ssize_t nwords) in mpd_switch_to_dyn_cxx() 342 mpd_realloc_dyn_cxx(mpd_t *result, mpd_ssize_t nwords) in mpd_realloc_dyn_cxx()
|
D | io.c | 199 mpd_qset_string(mpd_t *dec, const char *s, const mpd_context_t *ctx, in mpd_qset_string() 331 mpd_qset_string_exact(mpd_t *dec, const char *s, uint32_t *status) in mpd_qset_string_exact() 398 coeff_to_string(char *s, const mpd_t *dec) in coeff_to_string() 419 coeff_to_string_dot(char *s, char *dot, const mpd_t *dec) in coeff_to_string_dot() 462 _mpd_to_string(char **result, const mpd_t *dec, int flags, mpd_ssize_t dplace) in _mpd_to_string() 648 mpd_to_sci(const mpd_t *dec, int fmt) in mpd_to_sci() 659 mpd_to_eng(const mpd_t *dec, int fmt) in mpd_to_eng() 670 mpd_to_sci_size(char **res, const mpd_t *dec, int fmt) in mpd_to_sci_size() 679 mpd_to_eng_size(char **res, const mpd_t *dec, int fmt) in mpd_to_eng_size() 1222 _mpd_round(mpd_t *result, const mpd_t *a, mpd_ssize_t prec, in _mpd_round() [all …]
|
D | README.txt | 21 io.{c,h} -> Conversions between mpd_t and ASCII strings, 22 mpd_t formatting (allows UTF-8 fill character). 25 and dynamic mpd_t.
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 71 mpd_t dec; 2243 mpd_t *d1, *d2; in PyDecType_FromFloatExact() 2927 mpd_t *vv; in multiply_by_denominator() 3340 mpd_t *x; in dec_as_long() 3639 mpd_t q = {MPD_STATIC|MPD_CONST_DATA,0,1,1,1,dq}; in PyDec_Round() 3681 mpd_t *x = NULL; in PyDec_AsTuple() 4509 mpd_t p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, 0, 19, 1, 1, p_data}; in _dec_hash() 4512 mpd_t inv10_p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, in _dec_hash() 4517 mpd_t p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, 0, 10, 2, 2, p_data}; in _dec_hash() 4520 mpd_t inv10_p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, in _dec_hash() [all …]
|