HomeSort by: relevance | last modified time | path
    Searched refs:MPFR_RNDD (Results 1 - 25 of 170) sorted by relevancy

1 2 3 4 5 6 7

  /src/external/lgpl3/mpfr/dist/examples/
sample.c 38 mpfr_set_d (t, 1.0, MPFR_RNDD);
40 mpfr_set_d (s, 1.0, MPFR_RNDD);
45 mpfr_set_d (u, 1.0, MPFR_RNDD);
46 mpfr_div (u, u, t, MPFR_RNDD);
47 mpfr_add (s, s, u, MPFR_RNDD);
50 mpfr_out_str (stdout, 10, 0, s, MPFR_RNDD);
  /src/external/lgpl3/mpfr/dist/src/
print_rnd_mode.c 36 case MPFR_RNDD:
37 return "MPFR_RNDD";
csc.c 56 rnd_mode = (signx > 0) ? MPFR_RNDU : MPFR_RNDD; \
63 else if (rnd_mode == MPFR_RNDD) \
csch.c 59 rnd_mode = (signx > 0) ? MPFR_RNDU : MPFR_RNDD; \
66 else if (rnd_mode == MPFR_RNDD || rnd_mode == MPFR_RNDZ) \
get_flt.c 53 rnd_mode = negative ? MPFR_RNDD : MPFR_RNDU;
70 (rnd_mode == MPFR_RNDD ||
86 (rnd_mode == MPFR_RNDZ || rnd_mode == MPFR_RNDD ?
cot.c 71 rnd_mode = (signx > 0) ? MPFR_RNDU : MPFR_RNDD; \
78 else if (rnd_mode == MPFR_RNDD || rnd_mode == MPFR_RNDZ) \
coth.c 73 rnd_mode = (signx > 0) ? MPFR_RNDU : MPFR_RNDD; \
80 else if (rnd_mode == MPFR_RNDD) \
sinh.c 97 MPFR_BLOCK (flags, mpfr_exp (t, x, MPFR_RNDD));
102 mpfr_div_2ui (ti, x, 1, MPFR_RNDD); /* exact */
105 MPFR_BLOCK (flags, mpfr_cosh (t, ti, MPFR_RNDD));
117 mpfr_sinh (ti, ti, MPFR_RNDD);
120 MPFR_BLOCK (flags, mpfr_mul (t, t, ti, MPFR_RNDD));
acosh.c 95 MPFR_BLOCK (flags, mpfr_sqr (t, x, MPFR_RNDD)); /* x^2 */
117 mpfr_sub_ui (t, t, 1, MPFR_RNDD); /* x^2-1 */
123 mpfr_sub_ui (t, x, 1, MPFR_RNDD); /* t = x - 1 */
get_d.c 63 rnd_mode = negative ? MPFR_RNDD : MPFR_RNDU;
73 (rnd_mode == MPFR_RNDD ||
89 (rnd_mode == MPFR_RNDZ || rnd_mode == MPFR_RNDD ?
asinh.c 92 mpfr_sqr (t, x, MPFR_RNDD); /* x^2 */
93 mpfr_add_ui (t, t, 1, MPFR_RNDD); /* x^2+1 */
exp3.c 148 mpfr_set_z (y, S[0], MPFR_RNDD);
189 mpfr_set (x_copy, x, MPFR_RNDD);
232 mpfr_sqr (tmp, tmp, MPFR_RNDD);
243 mpfr_mul (tmp, tmp, t, MPFR_RNDD);
259 mpfr_sqr (tmp, tmp, MPFR_RNDD);
260 mpfr_sqr (t, tmp, MPFR_RNDD);
275 mpfr_mul_2ui (tmp, tmp, 1, MPFR_RNDD); /* no overflow, exact */
276 mpfr_sqr (t, tmp, MPFR_RNDD);
  /src/external/lgpl3/mpfr/dist/tests/
tlog.c 92 check2("1.00089971802309629645", MPFR_RNDD, "8.99313519443722736088e-04");
96 check2("1.01979300812244555452", MPFR_RNDD, "1.95996734891603630047e-02");
100 check2("1.02900871924604464525", MPFR_RNDD, "2.85959303301472726744e-02");
104 check2("1.27832870030418943585", MPFR_RNDD, "2.45553521871417795852e-01");
108 check2("1.31706530746788241792", MPFR_RNDD, "2.75406009586277422674e-01");
112 check2("1.47116981099449883885", MPFR_RNDD, "3.86057874110010412760e-01");
116 check2("1.58405446812987782401", MPFR_RNDD, "4.59987679246663727639e-01");
120 check2("1.67192331263391547047", MPFR_RNDD, "5.13974647961076613889e-01");
124 check2("1.71101198068990645318", MPFR_RNDD, "5.37084997042120315669e-01");
128 check2("1.72634853551388700588", MPFR_RNDD, "5.46008504786553605648e-01")
    [all...]
thyperbolic.c 44 tester=mpfr_cosh(ch,t,MPFR_RNDD);
54 tester=mpfr_sinh(sh,t,MPFR_RNDD);
64 tester=mpfr_tanh(th,t,MPFR_RNDD);
74 tester=mpfr_acosh(ach,t,MPFR_RNDD);
84 tester=mpfr_asinh(ash,t,MPFR_RNDD);
94 tester=mpfr_atanh(ath,t,MPFR_RNDD);
129 mpfr_set_ui(t,0,MPFR_RNDD);
133 tester = mpfr_cosh (ch, t, MPFR_RNDD);
143 tester = mpfr_sinh (sh, t, MPFR_RNDD);
153 tester = mpfr_tanh (th, t, MPFR_RNDD);
    [all...]
tsinh_cosh.c 29 mpfr_out_str (stdout, 10, 0, x, MPFR_RNDD);
31 mpfr_out_str (stdout, 10, 0, esh, MPFR_RNDD);
33 mpfr_out_str (stdout, 10, 0, gsh, MPFR_RNDD);
35 mpfr_out_str (stdout, 10, 0, ech, MPFR_RNDD);
37 mpfr_out_str (stdout, 10, 0, gch, MPFR_RNDD);
116 mpfr_ui_sub (x, i, x, MPFR_RNDD);
117 mpfr_div_2ui (x, x, 2, MPFR_RNDD);
121 check (x, MPFR_RNDD);
rnd_mode.c 59 case MPFR_RNDD:
tset_str.c 241 mpfr_set_str (x, "9007199254740992", 10, MPFR_RNDD);
627 CHECK53(y, "7e-303", MPFR_RNDD, x,
634 CHECK53(y, "93e-234", MPFR_RNDD, x,
641 CHECK53(y, "755e174", MPFR_RNDD, x,
648 CHECK53(y, "8699e-276", MPFR_RNDD, x,
655 CHECK53(y, "82081e41", MPFR_RNDD, x,
662 CHECK53(y, "584169e229", MPFR_RNDD, x,
669 CHECK53(y, "5783893e-128", MPFR_RNDD, x,
676 CHECK53(y, "87575437e-310", MPFR_RNDD, x,
683 CHECK53(y, "245540327e121", MPFR_RNDD, x
    [all...]
texp.c 79 test_exp(y, x, MPFR_RNDD);
125 mpfr_exp_2 (y, x, MPFR_RNDD);
126 mpfr_exp_3 (x, x, MPFR_RNDD);
279 mpfr_exp (x, x, MPFR_RNDD);
320 mpfr_exp (x, x, MPFR_RNDD);
369 test_exp (y, x, MPFR_RNDD);
558 if (rnd == MPFR_RNDZ || rnd == MPFR_RNDD)
680 * or minpos. An underflow always occurs in MPFR_RNDZ and MPFR_RNDD,
754 if (rnd == MPFR_RNDD || rnd == MPFR_RNDZ)
779 mpfr_log (x, minpos, MPFR_RNDD); /* |ulp| <= 1/2 *
    [all...]
tsqrt.c 167 check24("70368760954880.0", MPFR_RNDD, "8.388608e6");
168 check24("281474943156224.0", MPFR_RNDD, "1.6777214e7");
169 check24("70368777732096.0", MPFR_RNDD, "8.388609e6");
170 check24("281474909601792.0", MPFR_RNDD, "1.6777213e7");
171 check24("100216216748032.0", MPFR_RNDD, "1.0010805e7");
172 check24("120137273311232.0", MPFR_RNDD, "1.0960715e7");
173 check24("229674600890368.0", MPFR_RNDD, "1.5155019e7");
174 check24("70368794509312.0", MPFR_RNDD, "8.38861e6");
175 check24("281474876047360.0", MPFR_RNDD, "1.6777212e7");
176 check24("91214552498176.0", MPFR_RNDD, "9.550631e6")
    [all...]
  /src/external/lgpl3/mpc/dist/src/
sqrt.c 42 const mpfr_rnd_t r = im_sgn ? MPFR_RNDD : MPFR_RNDU;
178 /* force MPFR_RNDD or MPFR_RNDUP, using sign(t) = sign(y) */
179 rnd_t = (im_cmp > 0 ? MPFR_RNDD : MPFR_RNDU);
181 rnd_t = (im_cmp > 0 ? MPFR_RNDU : MPFR_RNDD);
191 rnd_t = MPFR_RNDD;
201 rnd_t = MPFR_RNDD;
219 inex_w = mpfr_sqr (w, mpc_realref (b), MPFR_RNDD);
220 inex_w |= mpfr_sqr (t, mpc_imagref (b), MPFR_RNDD);
221 inex_w |= mpfr_add (w, w, t, MPFR_RNDD);
222 inex_w |= mpfr_sqrt (w, w, MPFR_RNDD);
    [all...]
mpc-impl.h 80 (((r) == MPFR_RNDU) ? MPFR_RNDD : (((r) == MPFR_RNDD) ? MPFR_RNDU : (r)))
84 ((rnd==MPFR_RNDZ) || (sgn<0 && rnd==MPFR_RNDU) || (sgn>0 && rnd==MPFR_RNDD))
88 ((sgn<0 && rnd==MPFR_RNDD) || (sgn>0 && rnd==MPFR_RNDU))
norm.c 80 inexact = mpfr_sqr (u, mpc_realref(b), MPFR_RNDD); /* err <= 1 ulp in prec */
81 inexact |= mpfr_sqr (v, mpc_imagref(b), MPFR_RNDD); /* err <= 1 ulp in prec */
89 mpfr_add (res, u, v, MPFR_RNDD); /* err <= 3 ulp in prec */
93 && !mpfr_can_round (res, prec - 2, MPFR_RNDD, MPFR_RNDU,
cmp_abs.c 83 inex1 = mpc_norm (n1, z1, MPFR_RNDD);
84 inex2 = mpc_norm (n2, z2, MPFR_RNDD);
acos.c 92 mpfr_const_pi (x, MPFR_RNDD);
93 mpfr_mul_ui (x, x, 3, MPFR_RNDD);
95 mpfr_can_round (x, p - 1, MPFR_RNDD, MPC_RND_RE (rnd),
190 rnd_im = mpfr_sgn (mpc_imagref(op)) > 0 ? MPFR_RNDD : MPFR_RNDU;
192 rnd_im = rnd_im == MPFR_RNDU ? MPFR_RNDD
193 : rnd_im == MPFR_RNDD ? MPFR_RNDU
  /src/external/lgpl3/mpc/dist/tests/
rounding.c 37 return MPFR_RNDD;
38 case MPFR_RNDD:
51 || curr == MPFR_RNDU || curr == MPFR_RNDD

Completed in 69 milliseconds

1 2 3 4 5 6 7