Searched refs:inex2 (Results 1 - 24 of 24) sorted by relevance

/haiku-buildtools/gcc/mpfr/src/
H A Dmul_2ui.c44 int inex2; local
47 inex2 = mpfr_mul_2ui(y, y, LONG_MAX, rnd_mode);
48 if (inex2)
49 return inex2; /* overflow */
H A Dsubnormal.c119 int inexact, inex2; local
156 inex2 = mpfr_set (y, dest, rnd);
157 MPFR_ASSERTN (inex2 == 0);
H A Dfma.c187 int inex2; local
193 inex2 = mpfr_mul_2ui (s, s, 2, rnd_mode);
194 if (inex2) /* overflow */
196 inexact = inex2;
271 int inex2; local
279 inex2 = mpfr_div_2ui (s, s, scale, MPFR_RNDN);
283 if (inex2) /* underflow */
284 inexact = inex2;
H A Dfms.c189 int inex2; local
195 inex2 = mpfr_mul_2ui (s, s, 2, rnd_mode);
196 if (inex2) /* overflow */
198 inexact = inex2;
273 int inex2; local
281 inex2 = mpfr_div_2ui (s, s, scale, MPFR_RNDN);
285 if (inex2) /* underflow */
286 inexact = inex2;
H A Dgrandom.c35 int inex1, inex2, s1, s2; local
40 inex2 = inex1 = 0;
178 inex2 = mpfr_set (rop2, r2, rnd);
179 inex2 = mpfr_check_range (rop2, inex2, rnd);
197 return INEX (inex1, inex2);
H A Dpow.c321 int inex2; local
371 inex2 = mpfr_mul_2si (z, z, lk, rnd_mode);
372 if (inex2) /* underflow or overflow */
374 inexact = inex2;
595 int inex2; local
600 inex2 = mpfr_set_exp_t (tmp, MPFR_GET_EXP (x), MPFR_RNDN);
601 MPFR_ASSERTN (inex2 == 0);
604 inex2 = mpfr_sub_ui (tmp, tmp, 1, MPFR_RNDN);
605 MPFR_ASSERTN (inex2 == 0);
H A Dlngamma.c65 int inex1, inex2, sign; local
94 MPFR_BLOCK (flags2, inex2 = mpfr_exp (t2, s2, rnd));
101 MPFR_ASSERTN ((inex1 > 0 && inex2 > 0) || (inex1 < 0 && inex2 < 0));
191 int ok, inex1, inex2; local
227 inex2 = mpfr_prec_round (h, MPFR_PREC(y), rnd);
233 ok = SAME_SIGN (inex1, inex2) && mpfr_cmp (l, h) == 0;
692 int ok, inex2; local
710 inex2 = mpfr_prec_round (h, MPFR_PREC (y), rnd);
716 ok = SAME_SIGN (inex, inex2)
[all...]
H A Djn.c164 int inex2 = mpfr_div_2ui (res, res, 1, r);
166 (MPFR_ASSERTN (inex2 != 0), SIGN (_inexact) != MPFR_SIGN (z)))
169 inex = - inex2;
172 inex = inex2 != 0 ? inex2 : _inexact;
H A Dexp3.c292 int inex2; local
297 inex2 = mpfr_mul_2si (y, y, -2, rnd_mode);
298 if (inex2) /* underflow */
314 inexact = inex2;
H A Derf.c77 int ok, inex2; local
99 inex2 = mpfr_prec_round (h, MPFR_PREC(y), rnd_mode);
100 /* Caution: we also need inex=inex2 (inex might be 0). */
101 ok = SAME_SIGN (inex, inex2) && mpfr_cmp (l, h) == 0;
H A Dyn.c221 int ok, inex2; local
256 inex2 = mpfr_prec_round (h, MPFR_PREC(res), r);
257 /* we need h=l and inex=inex2 */
258 ok = (inex == inex2) && mpfr_equal_p (l, h);
/haiku-buildtools/gcc/mpfr/tests/
H A Dtpow_all.c72 * inex2: computed ternary value.
78 mpfr_srcptr z1, int inex1, mpfr_srcptr z2, int inex2,
92 else if (SAME_SIGN (inex1, inex2) &&
121 printf (", inex = %d, flags = %u\n", SIGN (inex2), flags2);
148 int inex2; local
157 inex2 = mpfr_pow (z2, x, y, rnd);
158 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, MPFR_FLAGS_ALL,
169 inex2 = mpfr_pow_ui (z2, x, yy, rnd);
170 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, flags,
173 inex2
77 cmpres(int spx, const void *px, const char *sy, mpfr_rnd_t rnd, mpfr_srcptr z1, int inex1, mpfr_srcptr z2, int inex2, unsigned int flags1, const char *s1, const char *s2) argument
[all...]
H A Dtinternals.c55 int failures = 0, mx, neg, err, dir, r, inex, inex2; local
84 inex2 = ((dir ^ neg) ? mpfr_add : mpfr_sub)
86 if (inex * inex2 <= 0)
88 inex, inex2);
H A Dtgamma.c555 int inex1, inex2; local
571 inex2 = mpfr_gamma (z, x, MPFR_RNDN);
575 if (inex1 != inex2 || flags1 != flags2 || ! mpfr_equal_p (y, z))
582 printf ("Got inex2 = %d, flags2 = %u, ", SIGN (inex2), flags2);
594 inex2 = mpfr_gamma (z, x, MPFR_RNDD);
598 if (inex1 != inex2 || flags1 != flags2 || ! mpfr_equal_p (y, z))
605 printf ("Got inex2 = %d, flags2 = %u, ", SIGN (inex2), flags2);
616 inex2
[all...]
H A Dthypot.c139 int inex1, inex2; local
148 inex2 = mpfr_mul (z1, z1, x, MPFR_RNDN);
149 MPFR_ASSERTN (inex2 == 0);
151 inex2 = mpfr_hypot (z2, x, y, MPFR_RNDN);
163 if (! SAME_SIGN (inex1, inex2))
166 ext ? ", extended exponent range" : "", inex1, inex2);
183 int inexact, inex2, r; local
224 inex2 = mpfr_add_ui (y, x, 1, (mpfr_rnd_t) r);
225 if (! mpfr_equal_p (y, z) || ! SAME_SIGN (inexact, inex2))
232 printf (", inex = %d\n", inex2);
[all...]
H A Dtacos.c35 int inex1, inex2; local
62 inex2 = mpfr_const_pi (x, MPFR_RNDN);
63 if (inex1 != inex2)
H A Dtset_sj.c58 int inex1, inex2, n; local
72 inex2 = mpfr_set_ui (y, limb, MPFR_RNDN);
81 if (inexact_sign (inex1) != inexact_sign (inex2))
85 (unsigned long) limb, (unsigned long) p, inex1, inex2);
H A Dtfactorial.c79 int inex1, inex2; local
97 inex2 = mpfr_set_z (y, f, (mpfr_rnd_t) r);
104 if ((inex1 < 0 && inex2 >= 0) || (inex1 == 0 && inex2 != 0)
105 || (inex1 > 0 && inex2 <= 0))
H A Dtagm.c46 int inex2; local
80 inex2 = mpfr_agm (tres, ta, tb, rnd_mode);
84 if (SIGN (inex2) != inex || newflags != expflags ||
99 " ", inex2, newflags);
H A Dtfrac.c36 int inex1, inex2; local
60 inex2 = mpfr_set (fp2, fp, rnd);
61 if (inex1 != inex2)
65 printf ("\nGot %d instead of %d\n", inex1, inex2);
H A Dtdiv.c52 int inex, inex2; local
71 inex2 = mpfr_ui_div (a2, mpfr_get_ui (b, MPFR_RNDN), c, r);
72 MPFR_ASSERTN (SAME_SIGN (inex2, inex));
79 inex2 = mpfr_si_div (a2, mpfr_get_si (b, MPFR_RNDN), c, r);
80 MPFR_ASSERTN (SAME_SIGN (inex2, inex));
93 inex2 = mpfr_div_ui (a2, b, mpfr_get_ui (c, MPFR_RNDN), r);
94 MPFR_ASSERTN (SAME_SIGN (inex2, inex));
101 inex2 = mpfr_div_si (a2, b, mpfr_get_si (c, MPFR_RNDN), r);
102 MPFR_ASSERTN (SAME_SIGN (inex2, inex));
378 int inex, inex2, local
979 int inex1, inex2; local
[all...]
H A Dtmul_2exp.c57 int inex1, inex2; local
91 inex2 = div == 0 ?
96 if (flags1 == flags2 && SAME_SIGN (inex1, inex2) &&
117 printf (", inex = %d, flags = %u\n", SIGN (inex2), flags2);
H A Dtstrtofr.c1147 int inex1, inex2, i, r; local
1168 inex2 = mpfr_strtofr (x2, s, NULL, 0, rnd);
1169 inex2 = SIGN (inex2);
1178 if (! mpfr_equal_p (x1, x2) || inex1 != inex2)
1184 printf ("Got inex = %d, x = ", inex2);
/haiku-buildtools/gcc/mpc/src/
H A Dmpc.h67 #define MPC_INEX12(inex1, inex2) (inex1 | (inex2 << 4))

Completed in 244 milliseconds