Searched refs:mpd_t (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.h | 372 typedef struct mpd_t { struct 379 } mpd_t; argument 403 char *mpd_to_sci(const mpd_t *dec, int fmt); 404 char *mpd_to_eng(const mpd_t *dec, int fmt); 405 mpd_ssize_t mpd_to_sci_size(char **res, const mpd_t *dec, int fmt); 406 mpd_ssize_t mpd_to_eng_size(char **res, const mpd_t *dec, int fmt); 409 char *mpd_qformat_spec(const mpd_t *dec, const mpd_spec_t *spec, const mpd_context_t *ctx, uint32_t… 410 char *mpd_qformat(const mpd_t *dec, const char *fmt, const mpd_context_t *ctx, uint32_t *status); 421 void mpd_fprint(FILE *file, const mpd_t *dec); 422 void mpd_print(const mpd_t *dec); [all …]
|
D | mpdecimal.c | 81 mpd_t name = {flags|MPD_STATIC|MPD_STATIC_DATA, exp, digits, \ 86 mpd_t name = {flags|MPD_STATIC|MPD_CONST_DATA, exp, digits, \ 90 mpd_t name = {(a->flags&~MPD_DATAFLAGS)|MPD_STATIC|MPD_SHARED_DATA, \ 96 static const mpd_t one = {MPD_STATIC|MPD_CONST_DATA, 0, 1, 1, 1, data_one}; 97 static const mpd_t minus_one = {MPD_NEG|MPD_STATIC|MPD_CONST_DATA, 0, 1, 1, 1, 99 static const mpd_t zero = {MPD_STATIC|MPD_CONST_DATA, 0, 1, 1, 1, data_zero}; 101 static inline void _mpd_check_exp(mpd_t *dec, const mpd_context_t *ctx, 103 static void _settriple(mpd_t *result, uint8_t sign, mpd_uint_t a, 107 static int _mpd_cmp_abs(const mpd_t *a, const mpd_t *b); 109 static void _mpd_qadd(mpd_t *result, const mpd_t *a, const mpd_t *b, [all …]
|
D | memory.c | 156 mpd_t * 159 mpd_t *result; in mpd_qnew_size() 185 mpd_t * 193 mpd_t * 196 mpd_t *result; in mpd_new() 214 mpd_switch_to_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_switch_to_dyn() 243 mpd_switch_to_dyn_zero(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_switch_to_dyn_zero() 278 mpd_realloc_dyn(mpd_t *result, mpd_ssize_t nwords, uint32_t *status) in mpd_realloc_dyn()
|
D | mpalloc.h | 40 int mpd_switch_to_dyn(mpd_t *result, mpd_ssize_t size, uint32_t *status); 41 int mpd_switch_to_dyn_zero(mpd_t *result, mpd_ssize_t size, uint32_t *status); 42 int mpd_realloc_dyn(mpd_t *result, mpd_ssize_t size, uint32_t *status);
|
D | io.c | 199 mpd_qset_string(mpd_t *dec, const char *s, const mpd_context_t *ctx, in mpd_qset_string() 382 coeff_to_string(char *s, const mpd_t *dec) in coeff_to_string() 403 coeff_to_string_dot(char *s, char *dot, const mpd_t *dec) in coeff_to_string_dot() 446 _mpd_to_string(char **result, const mpd_t *dec, int flags, mpd_ssize_t dplace) in _mpd_to_string() 632 mpd_to_sci(const mpd_t *dec, int fmt) in mpd_to_sci() 643 mpd_to_eng(const mpd_t *dec, int fmt) in mpd_to_eng() 654 mpd_to_sci_size(char **res, const mpd_t *dec, int fmt) in mpd_to_sci_size() 663 mpd_to_eng_size(char **res, const mpd_t *dec, int fmt) in mpd_to_eng_size() 1206 _mpd_round(mpd_t *result, const mpd_t *a, mpd_ssize_t prec, in _mpd_round() 1232 mpd_qformat_spec(const mpd_t *dec, const mpd_spec_t *spec, in mpd_qformat_spec() [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 | 68 mpd_t dec; 2098 mpd_t *d1, *d2; in PyDecType_FromFloatExact() 2782 mpd_t *vv; in multiply_by_denominator() 3195 mpd_t *x; in dec_as_long() 3494 mpd_t q = {MPD_STATIC|MPD_CONST_DATA,0,1,1,1,dq}; in PyDec_Round() 3536 mpd_t *x = NULL; in PyDec_AsTuple() 4364 mpd_t p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, 0, 19, 1, 1, p_data}; in _dec_hash() 4367 mpd_t inv10_p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, in _dec_hash() 4372 mpd_t p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, 0, 10, 2, 2, p_data}; in _dec_hash() 4375 mpd_t inv10_p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, in _dec_hash() [all …]
|