Home
last modified time | relevance | path

Searched refs:bfdec_t (Results 1 – 3 of 3) sorted by relevance

/third_party/quickjs/
Dlibbf.h106 } bfdec_t; typedef
418 static inline void bfdec_init(bf_context_t *s, bfdec_t *r) in bfdec_init()
422 static inline void bfdec_delete(bfdec_t *r) in bfdec_delete()
427 static inline void bfdec_neg(bfdec_t *r) in bfdec_neg()
432 static inline int bfdec_is_finite(const bfdec_t *a) in bfdec_is_finite()
437 static inline int bfdec_is_nan(const bfdec_t *a) in bfdec_is_nan()
442 static inline int bfdec_is_zero(const bfdec_t *a) in bfdec_is_zero()
447 static inline void bfdec_memcpy(bfdec_t *r, const bfdec_t *a) in bfdec_memcpy()
452 int bfdec_set_ui(bfdec_t *r, uint64_t a);
453 int bfdec_set_si(bfdec_t *r, int64_t a);
[all …]
Dlibbf.c3086 ret = bfdec_normalize_and_round((bfdec_t *)a, prec, flags); in bf_atof_internal()
3738 …if (bfdec_round((bfdec_t *)a1, prec, (flags & BF_RND_MASK) | BF_FLAG_RADPNT_PREC) & BF_ST_MEM_ERRO… in bf_ftoa_internal()
3816 … if (bfdec_round((bfdec_t *)a1, prec, (flags & BF_RND_MASK)) & BF_ST_MEM_ERROR) in bf_ftoa_internal()
6270 void bfdec_print_str(const char *str, const bfdec_t *a) in bfdec_print_str()
6295 static inline limb_t scan_digit_nz(const bfdec_t *r, slimb_t bit_pos) in scan_digit_nz()
6358 static int bfdec_get_rnd_add(int *pret, const bfdec_t *r, limb_t l, in bfdec_get_rnd_add()
6419 static int __bfdec_round(bfdec_t *r, limb_t prec1, bf_flags_t flags, limb_t l) in __bfdec_round()
6519 int bfdec_round(bfdec_t *r, limb_t prec, bf_flags_t flags) in bfdec_round()
6527 int bfdec_normalize_and_round(bfdec_t *r, limb_t prec1, bf_flags_t flags) in bfdec_normalize_and_round()
6556 int bfdec_set_ui(bfdec_t *r, uint64_t v) in bfdec_set_ui()
[all …]
Dquickjs.c404 bfdec_t num;
1141 static inline bfdec_t *JS_GetBigDecimal(JSValueConst val) in JS_GetBigDecimal()
1161 static bfdec_t *JS_ToBigDecimal(JSContext *ctx, JSValueConst val);
10147 bfdec_t *a; in js_string_to_bigdecimal()
11263 bfdec_t *a; in js_bigdecimal_to_string1()
12105 static bfdec_t *JS_ToBigDecimal(JSContext *ctx, JSValueConst val) in JS_ToBigDecimal()
12109 bfdec_t *r; in JS_ToBigDecimal()
12816 bfdec_t *r, *a; in js_unary_arith_bigdecimal()
13227 static int js_bfdec_pow(bfdec_t *r, const bfdec_t *a, const bfdec_t *b) in js_bfdec_pow()
13229 bfdec_t b1; in js_bfdec_pow()
[all …]