/third_party/python/Modules/_decimal/libmpdec/ |
D | mpdecimal.h | 353 typedef struct mpd_t { struct 360 } mpd_t; argument 384 int mpd_from_uint128_triple(mpd_t *result, const mpd_uint128_triple_t *triple, uint32_t *status); 385 mpd_uint128_triple_t mpd_as_uint128_triple(const mpd_t *a); 406 char *mpd_to_sci(const mpd_t *dec, int fmt); 407 char *mpd_to_eng(const mpd_t *dec, int fmt); 408 mpd_ssize_t mpd_to_sci_size(char **res, const mpd_t *dec, int fmt); 409 mpd_ssize_t mpd_to_eng_size(char **res, const mpd_t *dec, int fmt); 412 char *mpd_qformat_spec(const mpd_t *dec, const mpd_spec_t *spec, const mpd_context_t *ctx, uint32_t… 413 char *mpd_qformat(const mpd_t *dec, const char *fmt, const mpd_context_t *ctx, uint32_t *status); [all …]
|
D | mpsignal.c | 39 mpd_format(const mpd_t *dec, const char *fmt, mpd_context_t *ctx) in mpd_format() 49 mpd_import_u16(mpd_t *result, const uint16_t *srcdata, size_t srclen, in mpd_import_u16() 58 mpd_import_u32(mpd_t *result, const uint32_t *srcdata, size_t srclen, in mpd_import_u32() 67 mpd_export_u16(uint16_t **rdata, size_t rlen, uint32_t base, const mpd_t *src, in mpd_export_u16() 78 mpd_export_u32(uint32_t **rdata, size_t rlen, uint32_t base, const mpd_t *src, in mpd_export_u32() 89 mpd_finalize(mpd_t *result, mpd_context_t *ctx) in mpd_finalize() 97 mpd_check_nan(mpd_t *result, const mpd_t *a, mpd_context_t *ctx) in mpd_check_nan() 108 mpd_check_nans(mpd_t *result, const mpd_t *a, const mpd_t *b, mpd_context_t *ctx) in mpd_check_nans() 119 mpd_set_string(mpd_t *result, const char *s, mpd_context_t *ctx) in mpd_set_string() 127 mpd_maxcoeff(mpd_t *result, mpd_context_t *ctx) in mpd_maxcoeff() [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 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 | bench.c | 44 static mpd_t * 47 mpd_t *x = mpd_qnew(); in new_mpd() 58 color_point(mpd_t *x0, mpd_t *y0, long maxiter, mpd_context_t *ctx) in color_point() 60 mpd_t *x, *y, *sq_x, *sq_y; in color_point() 61 mpd_t *two; in color_point() 102 mpd_t *x0, *y0; in main()
|
D | mpalloc.c | 153 mpd_t * 156 mpd_t *result; in mpd_qnew_size() 182 mpd_t * 190 mpd_t * 193 mpd_t *result; in mpd_new() 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 | bench_full.c | 44 static mpd_t * 47 mpd_t *x = mpd_qnew(); in new_mpd() 65 color_point(const mpd_t *x0, const mpd_t *y0, const long maxiter, mpd_context_t *ctx) in color_point() 67 mpd_t *x, *y, *sq_x, *sq_y; in color_point() 68 mpd_t *two, *four, *c; in color_point() 117 mpd_t *x0, *y0; in main() 118 mpd_t *sqrt_2, *xstep, *ystep; in main()
|
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.
|
/third_party/python/Modules/_decimal/libmpdec/examples/ |
D | sqrt.c | 39 mpd_t *a; in main() 40 mpd_t *result; in main()
|
D | shift.c | 39 mpd_t *a, *b; in main() 40 mpd_t *result; in main()
|
D | compare.c | 39 mpd_t *a, *b; in main() 40 mpd_t *result; in main()
|
D | multiply.c | 39 mpd_t *a, *b; in main() 40 mpd_t *result; in main()
|
D | pow.c | 39 mpd_t *a, *b; in main() 40 mpd_t *result; in main()
|
D | div.c | 39 mpd_t *a, *b; in main() 40 mpd_t *result; in main()
|
D | powmod.c | 39 mpd_t *a, *b, *c; in main() 40 mpd_t *result; in main()
|
D | divmod.c | 39 mpd_t *a, *b; in main() 40 mpd_t *q, *r; in main()
|
/third_party/python/Modules/_decimal/ |
D | _decimal.c | 71 mpd_t dec; 2242 mpd_t *d1, *d2; in PyDecType_FromFloatExact() 2926 mpd_t *vv; in multiply_by_denominator() 3352 mpd_t *x; in dec_as_long() 3651 mpd_t q = {MPD_STATIC|MPD_CONST_DATA,0,1,1,1,dq}; in PyDec_Round() 3693 mpd_t *x = NULL; in PyDec_AsTuple() 4521 mpd_t p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, 0, 19, 1, 1, p_data}; in _dec_hash() 4524 mpd_t inv10_p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, in _dec_hash() 4529 mpd_t p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, 0, 10, 2, 2, p_data}; in _dec_hash() 4532 mpd_t inv10_p = {MPD_POS|MPD_STATIC|MPD_CONST_DATA, in _dec_hash() [all …]
|