/netbsd-src/external/lgpl3/mpc/dist/src/ |
H A D | dot.c | 46 mpfr_prec_t prec_x_re = mpfr_get_prec (mpc_realref (x[i])); in mpc_dot() 47 mpfr_prec_t prec_x_im = mpfr_get_prec (mpc_imagref (x[i])); in mpc_dot() 48 mpfr_prec_t prec_y_re = mpfr_get_prec (mpc_realref (y[i])); in mpc_dot() 49 mpfr_prec_t prec_y_im = mpfr_get_prec (mpc_imagref (y[i])); in mpc_dot() 50 mpfr_prec_t prec_y_max = MPC_MAX (prec_y_re, prec_y_im); in mpc_dot() 70 mpfr_prec_t prec_x_re = mpfr_get_prec (mpc_realref (x[i])); in mpc_dot() 71 mpfr_prec_t prec_x_im = mpfr_get_prec (mpc_imagref (x[i])); in mpc_dot() 72 mpfr_prec_t prec_y_re = mpfr_get_prec (mpc_realref (y[i])); in mpc_dot() 73 mpfr_prec_t prec_y_im = mpfr_get_prec (mpc_imagref (y[i])); in mpc_dot()
|
H A D | balls.c | 48 mpfr_prec_t 56 mpcb_set_prec (mpcb_ptr rop, mpfr_prec_t prec) in mpcb_set_prec() 84 mpcb_set_c (mpcb_ptr rop, mpc_srcptr op, mpfr_prec_t prec, in mpcb_set_c() 128 mpfr_prec_t prec) in mpcb_set_ui_ui() 134 (mpfr_prec_t) (CHAR_BIT * sizeof (unsigned long int))); in mpcb_set_ui_ui() 144 mpfr_prec_t p; in mpcb_neg() 162 mpfr_prec_t p = MPC_MIN (mpcb_get_prec (z1), mpcb_get_prec (z2)); in mpcb_mul() 191 mpfr_prec_t p = mpcb_get_prec (z1); in mpcb_sqr() 243 mpfr_prec_t p = MPC_MIN (mpcb_get_prec (z1), mpcb_get_prec (z2)); in mpcb_add() 291 mpfr_prec_t p = mpcb_get_prec (z1); in mpcb_sqrt() [all …]
|
H A D | mpc.h | 242 __MPC_DECLSPEC void mpc_init2 (mpc_ptr, mpfr_prec_t); 243 __MPC_DECLSPEC void mpc_init3 (mpc_ptr, mpfr_prec_t, mpfr_prec_t); 244 __MPC_DECLSPEC mpfr_prec_t mpc_get_prec (mpc_srcptr x); 245 __MPC_DECLSPEC void mpc_get_prec2 (mpfr_prec_t *pr, mpfr_prec_t *pi, mpc_srcptr x); 246 __MPC_DECLSPEC void mpc_set_prec (mpc_ptr, mpfr_prec_t); 301 __MPC_DECLSPEC void mpcr_add_rounding_error (mpcr_ptr r, mpfr_prec_t p, 308 __MPC_DECLSPEC mpfr_prec_t mpcb_get_prec (mpcb_srcptr); 309 __MPC_DECLSPEC void mpcb_set_prec (mpcb_ptr, mpfr_prec_t); 312 __MPC_DECLSPEC void mpcb_set_c (mpcb_ptr, mpc_srcptr, mpfr_prec_t, 315 unsigned long int, mpfr_prec_t); [all …]
|
H A D | uceil_log2.c | 25 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 D | eta.c | 33 const mpfr_prec_t p = mpcb_get_prec (q); in eta_series() 144 const mpfr_prec_t pz = MPC_MAX_PREC (z); in q24_from_z() 147 mpfr_prec_t p, min; in q24_from_z() 162 if (p < (mpfr_prec_t) (CHAR_BIT * sizeof (mpfr_prec_t))) { in q24_from_z() 256 mpfr_prec_t prec; in mpc_eta_fund()
|
/netbsd-src/external/lgpl3/mpfr/dist/src/ |
H A D | sum.c | 93 mpfr_prec_t sh = (SH); \ 149 static mpfr_prec_t 150 sum_raw (mp_limb_t *wp, mp_size_t ws, mpfr_prec_t wq, const mpfr_ptr *x, in sum_raw() 152 mp_limb_t *tp, mp_size_t ts, int logn, mpfr_prec_t prec, in sum_raw() 156 (("ws=%Pd ts=%Pd prec=%Pd", (mpfr_prec_t) ws, (mpfr_prec_t) ts, prec), in sum_raw() 166 MPFR_ASSERTD (wq == (mpfr_prec_t) ws * GMP_NUMB_BITS); in sum_raw() 190 mpfr_prec_t xq; in sum_raw() 387 mpfr_prec_t cancel; /* number of cancelled bits */ in sum_raw() 467 mpfr_prec_t shiftq; in sum_raw() 487 shiftq = cancel - 2 - (mpfr_prec_t) diffexp; in sum_raw() [all …]
|
H A D | fpif.c | 105 ((precision) > 248 ? sizeof(mpfr_prec_t) : 0) + 3)) 186 mpfr_prec_t precision) in mpfr_fpif_store_precision() 210 sizeof(mpfr_prec_t), size_precision); in mpfr_fpif_store_precision() 224 static mpfr_prec_t 227 mpfr_prec_t precision; in mpfr_fpif_read_precision_from_file() 252 while (precision_size > sizeof(mpfr_prec_t)) in mpfr_fpif_read_precision_from_file() 261 MPFR_ASSERTN (precision_size <= sizeof(mpfr_prec_t)); in mpfr_fpif_read_precision_from_file() 265 if (precision_size == sizeof(mpfr_prec_t) && in mpfr_fpif_read_precision_from_file() 275 sizeof(mpfr_prec_t), precision_size); in mpfr_fpif_read_precision_from_file() 463 mpfr_prec_t precision; in mpfr_fpif_store_limbs() [all …]
|
H A D | exp3.c | 43 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() 140 diff = (mpfr_exp_t) prec_i_have - (mpfr_prec_t) precy; in mpfr_exp_rational() 164 mpfr_prec_t *mult; in mpfr_exp_3() 167 mpfr_prec_t realprec, Prec; in mpfr_exp_3() 225 mult = (mpfr_prec_t*) mpfr_allocate_func (2*(k+2)*sizeof(mpfr_prec_t)); in mpfr_exp_3() 253 mpfr_free_func (mult, 2*(k+2)*sizeof(mpfr_prec_t)); in mpfr_exp_3()
|
H A D | round_p.c | 27 int mpfr_round_p_2 (mp_limb_t *, mp_size_t, mpfr_exp_t, mpfr_prec_t); 29 mpfr_round_p (mp_limb_t *bp, mp_size_t bn, mpfr_exp_t err0, mpfr_prec_t prec) in mpfr_round_p() 69 mpfr_round_p (mp_limb_t *bp, mp_size_t bn, mpfr_exp_t err0, mpfr_prec_t prec) in mpfr_round_p() 71 mpfr_prec_t err; in mpfr_round_p() 78 err = (mpfr_prec_t) bn * GMP_NUMB_BITS; in mpfr_round_p()
|
H A D | round_prec.c | 53 mpfr_prec_round (mpfr_ptr x, mpfr_prec_t prec, mpfr_rnd_t rnd_mode) in mpfr_prec_round() 57 mpfr_prec_t nw, ow; in mpfr_prec_round() 161 mpfr_rnd_t rnd2, mpfr_prec_t prec) in mpfr_can_round() 179 mpfr_rnd_t rnd1, mpfr_rnd_t rnd2, mpfr_prec_t prec) in mpfr_can_round_raw() 181 mpfr_prec_t prec2; in mpfr_can_round_raw() 260 if (MPFR_UNLIKELY (prec > (mpfr_prec_t) bn * GMP_NUMB_BITS)) in mpfr_can_round_raw() 287 if (MPFR_UNLIKELY (err > (mpfr_prec_t) bn * GMP_NUMB_BITS)) in mpfr_can_round_raw() 333 if (prec < (mpfr_prec_t) bn * GMP_NUMB_BITS) in mpfr_can_round_raw() 374 prec2 = prec - (mpfr_prec_t) k1 * GMP_NUMB_BITS; in mpfr_can_round_raw()
|
H A D | set_dfl_prec.c | 26 MPFR_THREAD_VAR (mpfr_prec_t, __gmpfr_default_fp_bit_precision, in MPFR_THREAD_VAR() argument 30 mpfr_set_default_prec (mpfr_prec_t prec) in MPFR_THREAD_VAR() 37 mpfr_prec_t
|
H A D | sin_cos.c | 31 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; in reduce() 251 reduce2 (mpz_t S, mpz_t C, mpfr_prec_t prec) in reduce2() 290 sin_bs_aux (mpz_t Q0, mpz_t S0, mpz_t C0, mpz_srcptr p, mpfr_prec_t r, in sin_bs_aux() 291 mpfr_prec_t prec) in sin_bs_aux() 294 mpfr_prec_t log2_nb_terms[KMAX], mult[KMAX]; in sin_bs_aux() 295 mpfr_prec_t accu[KMAX], size_ptoj[KMAX]; in sin_bs_aux() 296 mpfr_prec_t prec_i_have, h, r0 = r, pp_s, p_s; in sin_bs_aux() [all …]
|
H A D | inits2.c | 43 mpfr_inits2 (mpfr_prec_t p, mpfr_ptr x, ...) in mpfr_inits2() 53 mpfr_prec_t p; in mpfr_inits2() 56 p = va_arg (arg, mpfr_prec_t); in mpfr_inits2()
|
H A D | log10p1.c | 48 mpfr_prec_t trailing_x = mpfr_min_prec (x); in mpfr_log10p1_exact_p() 49 mpfr_prec_t trailing_t = mpfr_min_prec (t); in mpfr_log10p1_exact_p() 52 mpfr_prec_t k = trailing_x - trailing_t; in mpfr_log10p1_exact_p() 81 mpfr_prec_t prec) in mpfr_log10p1_small() 127 mpfr_prec_t Ny = MPFR_PREC(y), prec; in mpfr_log10p1()
|
H A D | mpfr.h | 159 typedef short mpfr_prec_t; typedef 162 typedef int mpfr_prec_t; typedef 165 typedef long mpfr_prec_t; typedef 178 #define MPFR_PREC_MAX ((mpfr_prec_t) ((((mpfr_uprec_t) -1) >> 1) - 256)) 233 mpfr_prec_t _mpfr_prec; 244 # define mp_prec_t mpfr_prec_t 445 __MPFR_DECLSPEC void mpfr_init2 (mpfr_ptr, mpfr_prec_t); 450 mpfr_inits2 (mpfr_prec_t, mpfr_ptr, ...) __MPFR_SENTINEL_ATTR; 456 __MPFR_DECLSPEC int mpfr_prec_round (mpfr_ptr, mpfr_prec_t, mpfr_rnd_t); 458 mpfr_rnd_t, mpfr_prec_t); [all …]
|
H A D | compound.c | 59 mpfr_prec_t py, prec, extra; in mpfr_compound_si() 157 mpfr_prec_t precu = MPFR_ADD_PREC (prec, extra); in mpfr_compound_si() 158 mpfr_prec_t new_extra; in mpfr_compound_si() 265 mpfr_prec_t kx = mpfr_min_prec (x); in mpfr_compound_si() 266 mpfr_prec_t p = py + (rnd_mode == MPFR_RNDN); in mpfr_compound_si()
|
H A D | factorial.c | 40 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 D | hypot.c | 35 mpfr_prec_t N, Nz; /* size variables */ in mpfr_hypot() 36 mpfr_prec_t Nt; /* precision of the intermediary variable */ in mpfr_hypot() 37 mpfr_prec_t threshold; in mpfr_hypot() 175 mpfr_prec_t err; in mpfr_hypot()
|
H A D | stack_interface.c | 28 mpfr_custom_get_size (mpfr_prec_t prec) in mpfr_custom_get_size() 35 mpfr_custom_init (void *mantissa, mpfr_prec_t prec) in mpfr_custom_init() 64 mpfr_prec_t prec, void *mantissa) in mpfr_custom_init_set()
|
/netbsd-src/external/lgpl3/mpfr/dist/tune/ |
H A D | speed.c | 124 mpfr_prec_t mpfr_mul_threshold = MPFR_MUL_THRESHOLD; 136 static double domeasure (mpfr_prec_t *threshold, in domeasure() 138 mpfr_prec_t p) in domeasure() 173 tune_simple_func (mpfr_prec_t *threshold, in tune_simple_func() 175 mpfr_prec_t pstart, mpfr_prec_t pend) in tune_simple_func() 178 mpfr_prec_t p = pstart; in tune_simple_func()
|
H A D | tuneup.c | 247 mpfr_prec_t mpfr_exp_2_threshold; 258 mpfr_prec_t mpfr_exp_threshold; 269 mpfr_prec_t mpfr_sincos_threshold; 285 mpfr_prec_t mpfr_mul_threshold = 1; 286 mpfr_prec_t mpfr_sqr_threshold = 1; 287 mpfr_prec_t mpfr_div_threshold; 367 domeasure (mpfr_prec_t *threshold, in domeasure() 369 mpfr_prec_t p) in domeasure() 411 mpfr_prec_t p, in domeasure2() 474 tune_simple_func (mpfr_prec_t *threshold, in tune_simple_func() [all …]
|
H A D | bidimensional_sample.c | 50 mpfr_prec_t min_prec; 51 mpfr_prec_t max_prec; 207 mpfr_fprintf (output, "%Pu\t", (mpfr_prec_t)prec); in generate_2D_sample() 210 s.size = (mpfr_prec_t)prec; in generate_2D_sample() 212 mpfr_set_prec (x2, (mpfr_prec_t)prec); in generate_2D_sample() 295 mpfr_prec_t mpfr_exp_2_threshold; 296 mpfr_prec_t old_threshold = MPFR_EXP_2_THRESHOLD;
|
/netbsd-src/external/lgpl3/mpc/dist/tests/ |
H A D | tadd_fr.c | 25 check_ternary_value (mpfr_prec_t prec_max, mpfr_prec_t step) in check_ternary_value() 27 mpfr_prec_t prec; in check_ternary_value()
|
H A D | setprec_parameters.c | 24 set_output_precision (mpc_fun_param_t *params, mpfr_prec_t prec) in set_output_precision() 39 set_input_precision (mpc_fun_param_t *params, mpfr_prec_t prec) in set_input_precision() 54 set_reference_precision (mpc_fun_param_t *params, mpfr_prec_t prec) in set_reference_precision()
|
/netbsd-src/external/lgpl3/mpfr/dist/tests/ |
H A D | tgmpop.c | 246 test_cmp_z (mpfr_prec_t pmin, mpfr_prec_t pmax, int nmax) in test_cmp_z() 250 mpfr_prec_t p; in test_cmp_z() 298 test_cmp_q (mpfr_prec_t pmin, mpfr_prec_t pmax, int nmax) in test_cmp_q() 302 mpfr_prec_t p; in test_cmp_q() 422 test_cmp_f (mpfr_prec_t pmin, mpfr_prec_t pmax, int nmax) in test_cmp_f() 426 mpfr_prec_t p; in test_cmp_f() 624 test_genericz (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N, in test_genericz() 628 mpfr_prec_t prec; in test_genericz() 701 test_generic2z (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N, in test_generic2z() 705 mpfr_prec_t prec; in test_generic2z() [all …]
|