Home
last modified time | relevance | path

Searched refs:mpfr_prec_t (Results 1 – 25 of 128) sorted by relevance

123456

/dragonfly/contrib/mpfr/src/
H A Dprint_raw.c45 mpfr_prec_t px; in mpfr_fprint_binary()
82 mpfr_print_mant_binary(const char *str, const mp_limb_t *p, mpfr_prec_t r) in mpfr_print_mant_binary()
85 mpfr_prec_t count = 0; in mpfr_print_mant_binary()
106 mpfr_dump_mant (const mp_limb_t *p, mpfr_prec_t r, mpfr_prec_t precx, in mpfr_dump_mant()
107 mpfr_prec_t error) in mpfr_dump_mant()
110 mpfr_prec_t count = 0; in mpfr_dump_mant()
H A Dround_prec.c49 mpfr_prec_round (mpfr_ptr x, mpfr_prec_t prec, mpfr_rnd_t rnd_mode) in mpfr_prec_round()
53 mpfr_prec_t nw, ow; in mpfr_prec_round()
131 mpfr_rnd_t rnd2, mpfr_prec_t prec) in mpfr_can_round()
142 mpfr_rnd_t rnd1, mpfr_rnd_t rnd2, mpfr_prec_t prec) in mpfr_can_round_raw()
144 mpfr_prec_t err; in mpfr_can_round_raw()
153 else if (MPFR_UNLIKELY (prec > (mpfr_prec_t) bn * GMP_NUMB_BITS)) in mpfr_can_round_raw()
164 err = ((mpfr_uexp_t) err0 > (mpfr_prec_t) bn * GMP_NUMB_BITS) ? in mpfr_can_round_raw()
165 (mpfr_prec_t) bn * GMP_NUMB_BITS : (mpfr_prec_t) err0; in mpfr_can_round_raw()
180 prec -= (mpfr_prec_t) k1 * GMP_NUMB_BITS; in mpfr_can_round_raw()
H A Dround_p.c28 int mpfr_round_p_2 (mp_limb_t *, mp_size_t, mpfr_exp_t, mpfr_prec_t);
30 mpfr_round_p (mp_limb_t *bp, mp_size_t bn, mpfr_exp_t err0, mpfr_prec_t prec) in mpfr_round_p()
58 mpfr_round_p (mp_limb_t *bp, mp_size_t bn, mpfr_exp_t err0, mpfr_prec_t prec) in mpfr_round_p()
60 mpfr_prec_t err; in mpfr_round_p()
65 err = (mpfr_prec_t) bn * GMP_NUMB_BITS; in mpfr_round_p()
H A Dexp3.c43 mpz_t *Q, mpfr_prec_t *mult) in mpfr_exp_rational()
47 mpfr_prec_t *log2_nb_terms; in mpfr_exp_rational()
49 mpfr_prec_t precy = MPFR_PREC(y), prec_i_have, prec_ptoj; in mpfr_exp_rational()
138 diff = (mpfr_exp_t) prec_i_have - (mpfr_prec_t) precy; in mpfr_exp_rational()
160 mpfr_prec_t *mult; in mpfr_exp_3()
163 mpfr_prec_t realprec, Prec; in mpfr_exp_3()
221 mult = (mpfr_prec_t*) (*__gmp_allocate_func) (2*(k+2)*sizeof(mpfr_prec_t)); in mpfr_exp_3()
249 (*__gmp_free_func) (mult, 2*(k+2)*sizeof(mpfr_prec_t)); in mpfr_exp_3()
H A Dset_dfl_prec.c26 mpfr_prec_t MPFR_THREAD_ATTR __gmpfr_default_fp_bit_precision \
30 mpfr_set_default_prec (mpfr_prec_t prec) in mpfr_set_default_prec()
37 mpfr_prec_t
H A Dsin_cos.c31 mpfr_prec_t prec, m; in mpfr_sin_cos()
236 static mpfr_prec_t
237 reduce (mpz_t Q, mpz_srcptr R, mpfr_prec_t prec) in reduce()
239 mpfr_prec_t l = mpz_sizeinbase (R, 2); in reduce()
250 reduce2 (mpz_t S, mpz_t C, mpfr_prec_t prec) in reduce2()
285 mpfr_prec_t prec) in sin_bs_aux()
289 mpfr_prec_t accu[GMP_NUMB_BITS], size_ptoj[GMP_NUMB_BITS]; in sin_bs_aux()
290 mpfr_prec_t prec_i_have, r0 = r; in sin_bs_aux()
292 mpfr_prec_t l; in sin_bs_aux()
456 mpfr_prec_t prec_s, sh; in sincos_aux()
[all …]
H A Dinits2.c44 mpfr_inits2 (mpfr_prec_t p, mpfr_ptr x, ...) in mpfr_inits2()
54 mpfr_prec_t p; in mpfr_inits2()
57 p = va_arg (arg, mpfr_prec_t); in mpfr_inits2()
H A Dmpfr.h122 typedef short mpfr_prec_t; typedef
125 typedef int mpfr_prec_t; typedef
128 typedef long mpfr_prec_t; typedef
178 mpfr_prec_t _mpfr_prec;
189 # define mp_prec_t mpfr_prec_t
325 __MPFR_DECLSPEC void mpfr_init2 _MPFR_PROTO ((mpfr_ptr, mpfr_prec_t));
337 mpfr_prec_round _MPFR_PROTO ((mpfr_ptr, mpfr_prec_t, mpfr_rnd_t));
340 mpfr_prec_t));
341 __MPFR_DECLSPEC mpfr_prec_t mpfr_min_prec _MPFR_PROTO ((mpfr_srcptr));
345 __MPFR_DECLSPEC mpfr_prec_t mpfr_get_prec _MPFR_PROTO((mpfr_srcptr));
[all …]
H A Dmpfr-impl.h1478 #define MPFR_ZIV_DECL(_x) mpfr_prec_t _x
1500 mpfr_prec_t _x; \
1521 __func__, (mpfr_prec_t) (_p)); \
1584 __MPFR_DECLSPEC extern mpfr_prec_t mpfr_log_prec;
1811 mpfr_prec_t *));
1844 const mp_limb_t *, mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t, int *));
1846 mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t));
1853 const mp_limb_t *, mpfr_prec_t, int, mpfr_prec_t, mpfr_rnd_t));
1894 mpfr_prec_t, mpfr_prec_t,
1895 mpfr_prec_t));
[all …]
H A Dfactorial.c40 mpfr_prec_t Ny; /* Precision of output variable */ in mpfr_fac_ui()
41 mpfr_prec_t Nt; /* Precision of Intermediary Calculation variable */ in mpfr_fac_ui()
42 mpfr_prec_t err; /* Precision of error */ in mpfr_fac_ui()
H A Dget_sj.c36 mpfr_prec_t prec; in mpfr_get_sj()
70 MPFR_ASSERTN ((mpfr_prec_t) sh <= prec); in mpfr_get_sj()
72 && MPFR_UNLIKELY ((mpfr_prec_t) sh == prec)) in mpfr_get_sj()
H A Dstack_interface.c27 mpfr_custom_get_size (mpfr_prec_t prec) in mpfr_custom_get_size()
34 mpfr_custom_init (void *mantissa, mpfr_prec_t prec) in mpfr_custom_init()
63 mpfr_prec_t prec, void *mantissa) in mpfr_custom_init_set()
H A Dhypot.c34 mpfr_prec_t N, Nz; /* size variables */ in mpfr_hypot()
35 mpfr_prec_t Nt; /* precision of the intermediary variable */ in mpfr_hypot()
36 mpfr_prec_t threshold; in mpfr_hypot()
151 mpfr_prec_t err; in mpfr_hypot()
H A Dgammaonethird.c100 mpfr_Browns_const (mpfr_ptr s, mpfr_prec_t prec) in mpfr_Browns_const()
105 mpfr_prec_t working_prec = prec + 10 + MPFR_INT_CEIL_LOG2 (2 + prec / 10); in mpfr_Browns_const()
135 mpfr_gamma_one_third (mpfr_ptr y, mpfr_prec_t prec) in mpfr_gamma_one_third()
172 mpfr_gamma_one_and_two_third (mpfr_ptr y1, mpfr_ptr y2, mpfr_prec_t prec) in mpfr_gamma_one_and_two_third()
H A Dgamma.c31 static mpfr_prec_t
48 static mpfr_prec_t
102 mpfr_prec_t realprec; in mpfr_gamma()
235 mpfr_prec_t p = MPFR_PREC(gamma); in mpfr_gamma()
292 mpfr_prec_t w; in mpfr_gamma()
351 mpfr_prec_t w; in mpfr_gamma()
H A Datan.c44 mpfr_prec_t mult, *accu, *log2_nb_terms; in mpfr_atan_aux()
45 mpfr_prec_t precy = MPFR_PREC(y); in mpfr_atan_aux()
49 accu = (mpfr_prec_t*) (*__gmp_allocate_func) ((2 * m + 2) * sizeof (mpfr_prec_t)); in mpfr_atan_aux()
166 (*__gmp_free_func) (accu, (2 * m + 2) * sizeof (mpfr_prec_t)); in mpfr_atan_aux()
196 mpfr_prec_t prec, realprec, est_lost, lost; in mpfr_atan()
283 mpfr_prec_t sup; in mpfr_atan()
H A Dset_prc_raw.c26 mpfr_set_prec_raw (mpfr_ptr x, mpfr_prec_t p) in mpfr_set_prec_raw()
29 MPFR_ASSERTN (p <= (mpfr_prec_t) MPFR_GET_ALLOC_SIZE(x) * GMP_NUMB_BITS); in mpfr_set_prec_raw()
H A Dexp_2.c29 mpfr_exp2_aux (mpz_t, mpfr_srcptr, mpfr_prec_t, mpfr_exp_t *);
31 mpfr_exp2_aux2 (mpz_t, mpfr_srcptr, mpfr_prec_t, mpfr_exp_t *);
84 mpfr_prec_t q, precy; in mpfr_exp_2()
255 mpfr_exp2_aux (mpz_t s, mpfr_srcptr r, mpfr_prec_t q, mpfr_exp_t *exps) in mpfr_exp2_aux()
313 mpfr_exp2_aux2 (mpz_t s, mpfr_srcptr r, mpfr_prec_t q, mpfr_exp_t *exps) in mpfr_exp2_aux2()
316 mpfr_prec_t ql; in mpfr_exp2_aux2()
H A Dacosh.c76 mpfr_prec_t Ny = MPFR_PREC(y); /* Precision of output variable */ in mpfr_acosh()
77 mpfr_prec_t Nt; /* Precision of the intermediary variable */ in mpfr_acosh()
99 mpfr_prec_t pln2; in mpfr_acosh()
/dragonfly/contrib/mpc/src/
H A Duceil_log2.c25 mpfr_prec_t
26 mpc_ceil_log2 (mpfr_prec_t d) in mpc_ceil_log2()
28 mpfr_prec_t exp; in mpc_ceil_log2()
H A Dpow.c174 mpfr_prec_t maxprec) in mpc_pow_exact()
230 if ((mpfr_prec_t) mpz_sizeinbase (d, 2) > maxprec) in mpc_pow_exact()
236 if ((mpfr_prec_t) mpz_sizeinbase (c, 2) > maxprec) in mpc_pow_exact()
374 if ( (mpfr_prec_t) mpz_sizeinbase (a, 2) > maxprec in mpc_pow_exact()
375 || (mpfr_prec_t) mpz_sizeinbase (b, 2) > maxprec) in mpc_pow_exact()
400 if ( (mpfr_prec_t) mpz_sizeinbase (a, 2) > maxprec in mpc_pow_exact()
401 || (mpfr_prec_t) mpz_sizeinbase (b, 2) > maxprec) in mpc_pow_exact()
439 mpfr_prec_t prec; in is_odd()
448 if ((mpfr_prec_t) expo > prec) in is_odd()
484 mpfr_prec_t p, pr, pi, maxprec; in mpc_pow()
[all …]
H A Dmpc.h209 __MPC_DECLSPEC void mpc_init2 (mpc_ptr, mpfr_prec_t);
210 __MPC_DECLSPEC void mpc_init3 (mpc_ptr, mpfr_prec_t, mpfr_prec_t);
211 __MPC_DECLSPEC mpfr_prec_t mpc_get_prec (mpc_srcptr x);
212 __MPC_DECLSPEC void mpc_get_prec2 (mpfr_prec_t *pr, mpfr_prec_t *pi, mpc_srcptr x);
213 __MPC_DECLSPEC void mpc_set_prec (mpc_ptr, mpfr_prec_t);
H A Dget_prec.c23 mpfr_prec_t
26 mpfr_prec_t precre = MPC_PREC_RE (x); in mpc_get_prec()
H A Dget_prec2.c25 mpc_get_prec2 (mpfr_prec_t *pr, mpfr_prec_t *pi, mpc_srcptr x) in mpc_get_prec2()
H A Dinit3.c24 mpc_init3 (mpc_t x, mpfr_prec_t prec_re, mpfr_prec_t prec_im) in mpc_init3()

123456