Searched refs:rop (Results 1 - 25 of 137) sorted by relevance

123456

/netbsd-current/external/lgpl3/mpc/dist/src/
H A Dcos.c24 mpc_cos (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
26 return MPC_INEX2 (mpc_sin_cos (NULL, rop, op, 0, rnd));
H A Dsin.c24 mpc_sin (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
26 return MPC_INEX1 (mpc_sin_cos (rop, NULL, op, rnd, 0));
H A Drootofunity.c32 /* put in rop the value of exp(2*i*pi*k/n) rounded according to rnd */
34 mpc_rootofunity (mpc_ptr rop, unsigned long n, unsigned long k, mpc_rnd_t rnd) argument
45 mpfr_set_nan (mpc_realref (rop));
46 mpfr_set_nan (mpc_imagref (rop));
65 return mpc_set_ui_ui (rop, 1, 0, rnd);
71 return mpc_set_si_si (rop, -1, 0, rnd);
79 return mpc_set_ui_ui (rop, 0, 1, rnd);
81 return mpc_set_si_si (rop, 0, -1, rnd);
89 inex_re = mpfr_set_si (mpc_realref (rop), (n == 3 ? -1 : 1),
95 inex_im = mpfr_sqrt_ui (mpc_imagref (rop),
[all...]
H A Dadd_si.c24 mpc_add_si (mpc_ptr rop, mpc_srcptr op1, long int op2, mpc_rnd_t rnd) argument
28 inex_re = mpfr_add_si (mpc_realref (rop), mpc_realref (op1), op2, MPC_RND_RE (rnd));
29 inex_im = mpfr_set (mpc_imagref (rop), mpc_imagref (op1), MPC_RND_IM (rnd));
H A Dui_ui_sub.c25 mpc_ui_ui_sub (mpc_ptr rop, unsigned long int re, unsigned long int im, argument
30 inex_re = mpfr_ui_sub (mpc_realref (rop), re, mpc_realref (op), MPC_RND_RE (rnd));
31 inex_im = mpfr_ui_sub (mpc_imagref (rop), im, mpc_imagref (op), MPC_RND_IM (rnd));
H A Dsinh.c24 mpc_sinh (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
31 /* z := conj(-i * op) and rop = conj(-i * sin(z)), in other words, we have
36 mpc_realref (sin_z)[0] = mpc_imagref (rop)[0];
37 mpc_imagref (sin_z)[0] = mpc_realref (rop)[0];
41 /* sin_z and rop parts share the same significands, copy the rest now. */
42 mpc_realref (rop)[0] = mpc_imagref (sin_z)[0];
43 mpc_imagref (rop)[0] = mpc_realref (sin_z)[0];
H A Dtanh.c24 mpc_tanh (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
31 /* z := conj(-i * op) and rop = conj(-i * tan(z)), in other words, we have
36 mpc_realref (tan_z)[0] = mpc_imagref (rop)[0];
37 mpc_imagref (tan_z)[0] = mpc_realref (rop)[0];
41 /* tan_z and rop parts share the same significands, copy the rest now. */
42 mpc_realref (rop)[0] = mpc_imagref (tan_z)[0];
43 mpc_imagref (rop)[0] = mpc_realref (tan_z)[0];
H A Dacos.c25 mpc_acos (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
44 mpfr_set_inf (mpc_imagref (rop), mpfr_signbit (mpc_imagref (op)) ? +1 : -1);
45 mpfr_set_nan (mpc_realref (rop));
49 inex_re = set_pi_over_2 (mpc_realref (rop), +1, MPC_RND_RE (rnd));
50 mpfr_set_nan (mpc_imagref (rop));
54 mpfr_set_nan (mpc_realref (rop));
55 mpfr_set_nan (mpc_imagref (rop));
70 set_pi_over_2 (mpc_realref (rop), +1, MPC_RND_RE (rnd));
71 mpfr_div_2ui (mpc_realref (rop), mpc_realref (rop),
[all...]
H A Dlog.c25 mpc_log (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd){ argument
41 mpfr_set_inf (mpc_realref (rop), +1);
43 mpfr_set_nan (mpc_realref (rop));
44 mpfr_set_nan (mpc_imagref (rop));
49 mpfr_set_inf (mpc_realref (rop), +1);
51 mpfr_set_nan (mpc_realref (rop));
52 mpfr_set_nan (mpc_imagref (rop));
56 inex_im = mpfr_atan2 (mpc_imagref (rop), mpc_imagref (op), mpc_realref (op),
58 mpfr_set_inf (mpc_realref (rop), +1);
68 inex_im = mpfr_atan2 (mpc_imagref (rop), mpc_imagre
[all...]
H A Dcosh.c24 mpc_cosh (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
34 return mpc_cos (rop, z, rnd);
H A Dtan.c89 mpc_tan (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
108 inex = mpc_set_si_si (rop, 0,
116 mpfr_set_nan (mpc_realref (rop));
117 mpfr_set_nan (mpc_imagref (rop));
127 mpc_set (rop, op, rnd);
133 mpfr_set_nan (mpc_realref (rop));
134 mpfr_set_nan (mpc_imagref (rop));
148 mpfr_set_ui (mpc_realref (rop), 0, MPC_RND_RE (rnd));
149 mpfr_setsign (mpc_realref (rop), mpc_realref (rop), sign_r
[all...]
H A Datan.c24 /* set rop to
30 set_pi_over_2 (mpfr_ptr rop, int s, mpfr_rnd_t rnd) argument
34 inex = mpfr_const_pi (rop, s < 0 ? INV_RND (rnd) : rnd);
35 mpfr_div_2ui (rop, rop, 1, MPFR_RNDN);
39 mpfr_neg (rop, rop, MPFR_RNDN);
46 mpc_atan (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
62 mpfr_set_nan (mpc_realref (rop));
65 mpfr_set_ui (mpc_imagref (rop),
[all...]
H A Dexp.c24 mpc_exp (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
44 return mpc_set (rop, op, MPC_RNDNN);
49 return mpc_set_ui_ui (rop, 0, 0, MPC_RNDNN);
52 mpfr_set_inf (mpc_realref (rop), +1);
53 mpfr_set_nan (mpc_imagref (rop));
57 mpfr_set_nan (mpc_realref (rop));
58 mpfr_set_nan (mpc_imagref (rop));
67 inex_re = mpfr_exp (mpc_realref(rop), mpc_realref(op), MPC_RND_RE(rnd));
68 inex_im = mpfr_set (mpc_imagref(rop), mpc_imagref(op), MPC_RND_IM(rnd));
75 inex_re = mpfr_cos (mpc_realref (rop), mpc_imagre
[all...]
H A Dasinh.c24 mpc_asinh (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
37 mpc_init3 (a, MPC_PREC_IM(rop), MPC_PREC_RE(rop));
50 mpc_set (rop, a, MPC_RNDNN); /* exact */
H A Datanh.c24 mpc_atanh (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
36 mpc_init3 (a, MPC_PREC_IM(rop), MPC_PREC_RE(rop));
47 mpc_set (rop, a, rnd);
H A Dsqr.c163 mpc_sqr (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
169 needed in the case rop==op */
178 mpfr_set_nan (mpc_realref (rop));
179 mpfr_set_nan (mpc_imagref (rop));
183 mpfr_set_inf (mpc_imagref (rop),
185 mpfr_set_nan (mpc_realref (rop));
189 mpfr_set_nan (mpc_imagref (rop));
191 mpfr_set_inf (mpc_imagref (rop),
193 mpfr_set_inf (mpc_realref (rop), +1);
198 mpfr_set_nan (mpc_imagref (rop));
[all...]
H A Dacosh.c24 mpc_acosh (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd) argument
38 mpfr_set_nan (mpc_realref (rop));
39 mpfr_set_nan (mpc_imagref (rop));
44 mpc_init3 (a, MPC_PREC_IM(rop), MPC_PREC_RE(rop));
71 mpc_set (rop, a, rnd);
/netbsd-current/external/mit/isl/dist/
H A Disl_imath.h7 void isl_imath_addmul_ui(mp_int rop, mp_int op1, unsigned long op2);
8 void isl_imath_submul_ui(mp_int rop, mp_int op1, unsigned long op2);
9 void isl_imath_cdiv_q_ui(mp_int rop, mp_int op1, unsigned long op2);
10 void isl_imath_fdiv_q_ui(mp_int rop, mp_int op1, unsigned long op2);
H A Disl_imath.c33 void isl_imath_addmul_ui(mp_int rop, mp_int op1, unsigned long op2) argument
40 mp_int_add(rop, &temp, rop);
45 void isl_imath_submul_ui(mp_int rop, mp_int op1, unsigned long op2) argument
52 mp_int_sub(rop, &temp, rop);
60 void isl_imath_cdiv_q_ui(mp_int rop, mp_int lhs, unsigned long rhs) argument
66 impz_cdiv_q(rop, lhs, &temp);
74 void isl_imath_fdiv_q_ui(mp_int rop, mp_int lhs, unsigned long rhs) argument
80 impz_fdiv_q(rop, lh
[all...]
/netbsd-current/external/lgpl3/gmp/dist/mpz/
H A Durandomb.c1 /* mpz_urandomb (rop, state, n) -- Generate a uniform pseudorandom
36 mpz_urandomb (mpz_ptr rop, gmp_randstate_t rstate, mp_bitcnt_t nbits) argument
42 rp = MPZ_NEWALLOC (rop, size);
46 SIZ (rop) = size;
/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Drndna.c29 /* In order to work, we'll save the context within the mantissa of 'rop'.
61 and prepares rop to give it one more bit of precision
64 mpfr_round_nearest_away_begin (mpfr_ptr rop) argument
79 p = MPFR_PREC (rop) + 1;
92 ext[OLD_MANTISSA].pi = MPFR_MANT(rop);
93 ext[OLD_EXPONENT].ex = MPFR_EXP(rop);
94 ext[OLD_SIGN].sg = MPFR_SIGN(rop);
95 ext[OLD_PREC].pr = MPFR_PREC(rop);
111 /* Copy rop into tmp now (rop ma
132 mpfr_round_nearest_away_end(mpfr_ptr rop, int inex) argument
[all...]
H A Durandom.c1 /* mpfr_urandom (rop, state, rnd_mode) -- Generate a uniform pseudorandom
2 real number between 0 and 1 (exclusive) and round it to the precision of rop
54 mpfr_urandom (mpfr_ptr rop, gmp_randstate_t rstate, mpfr_rnd_t rnd_mode) argument
73 rp = MPFR_MANT (rop);
74 nbits = MPFR_PREC (rop);
75 MPFR_SET_EXP (rop, 0);
76 MPFR_SET_POS (rop);
112 nlimbs = MPFR_LIMB_SIZE (rop);
127 mpfr_nextabove (rop);
135 MPFR_EXP (rop)
[all...]
H A Durandomb.c1 /* mpfr_urandomb (rop, state, nbits) -- Generate a uniform pseudorandom
50 mpfr_urandomb (mpfr_ptr rop, gmp_randstate_t rstate) argument
59 rp = MPFR_MANT (rop);
60 nbits = MPFR_PREC (rop);
61 nlimbs = MPFR_LIMB_SIZE (rop);
62 MPFR_SET_POS (rop);
94 MPFR_SET_NAN (rop);
98 MPFR_SET_EXP (rop, exp);
107 MPFR_SET_ZERO (rop);
/netbsd-current/external/lgpl3/gmp/dist/mpf/
H A Durandomb.c1 /* mpf_urandomb (rop, state, nbits) -- Generate a uniform pseudorandom
37 mpf_urandomb (mpf_t rop, gmp_randstate_t rstate, mp_bitcnt_t nbits) argument
44 rp = PTR (rop);
46 prec = PREC (rop);
66 EXP (rop) = exp;
67 SIZ (rop) = nlimbs;
/netbsd-current/external/lgpl3/gmp/dist/mpq/
H A Daors.c39 mpq_aors (mpq_ptr rop, mpq_srcptr op1, mpq_srcptr op2, argument
79 mpz_set (NUM(rop), t);
80 mpz_mul (DEN(rop), DEN(op2), tmp2);
84 mpz_divexact_gcd (NUM(rop), t, gcd);
86 mpz_mul (DEN(rop), tmp1, tmp2);
95 (*fun) (NUM(rop), tmp1, tmp2);
96 mpz_mul (DEN(rop), DEN(op1), DEN(op2));
103 mpq_add (mpq_ptr rop, mpq_srcptr op1, mpq_srcptr op2) argument
105 mpq_aors (rop, op1, op2, mpz_add);
109 mpq_sub (mpq_ptr rop, mpq_srcpt argument
[all...]

Completed in 145 milliseconds

123456