Home
last modified time | relevance | path

Searched refs:mpd_t (Results 1 – 18 of 18) sorted by relevance

/third_party/python/Modules/_decimal/libmpdec/
Dmpdecimal.h353 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 …]
Dmpsignal.c39 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 …]
Dmpdecimal.c84 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 …]
Dmpalloc.h42 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);
Dbench.c44 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()
Dmpalloc.c153 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()
Dbench_full.c44 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()
Dio.c199 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 …]
DREADME.txt21 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/
Dsqrt.c39 mpd_t *a; in main()
40 mpd_t *result; in main()
Dshift.c39 mpd_t *a, *b; in main()
40 mpd_t *result; in main()
Dcompare.c39 mpd_t *a, *b; in main()
40 mpd_t *result; in main()
Dmultiply.c39 mpd_t *a, *b; in main()
40 mpd_t *result; in main()
Dpow.c39 mpd_t *a, *b; in main()
40 mpd_t *result; in main()
Ddiv.c39 mpd_t *a, *b; in main()
40 mpd_t *result; in main()
Dpowmod.c39 mpd_t *a, *b, *c; in main()
40 mpd_t *result; in main()
Ddivmod.c39 mpd_t *a, *b; in main()
40 mpd_t *q, *r; in main()
/third_party/python/Modules/_decimal/
D_decimal.c71 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 …]