/haiku-buildtools/gcc/mpfr/tests/ |
H A D | tset_sj.c | 58 int inex1, inex2, n; local 71 inex1 = mpfr_set_uj (x, limb, MPFR_RNDN); 81 if (inexact_sign (inex1) != inexact_sign (inex2)) 85 (unsigned long) limb, (unsigned long) p, inex1, inex2); 92 inex1 = mpfr_set_uj (x, MPFR_UINTMAX_MAX, MPFR_RNDN); 93 if (inex1 != 0 || mpfr_sgn(x) <= 0) 95 inex1 = mpfr_add_ui (x, x, 1, MPFR_RNDN); 96 if (inex1 != 0 || !mpfr_powerof2_raw (x)
|
H A D | tmul_2exp.c | 57 int inex1, inex2; local 69 inex1 = mpfr_set_ui_2exp (x, i, -4, MPFR_RNDN); 70 MPFR_ASSERTN (inex1 == 0); 78 inex1 = mpfr_mul_2si (y, x, e, MPFR_RNDN); 79 MPFR_ASSERTN (inex1 == 0); 80 inex1 = mpfr_set_ui (z1, 1 << k, MPFR_RNDN); 81 MPFR_ASSERTN (inex1 == 0); 85 inex1 = mpfr_div (z1, y, z1, (mpfr_rnd_t) rnd); 96 if (flags1 == flags2 && SAME_SIGN (inex1, inex2) && 114 printf (", inex = %d, flags = %u\n", SIGN (inex1), flags [all...] |
H A D | tgamma.c | 555 int inex1, inex2; local 566 inex1 = mpfr_gamma (y, x, MPFR_RNDN); 575 if (inex1 != inex2 || flags1 != flags2 || ! mpfr_equal_p (y, z)) 580 printf ("Expected inex1 = %d, flags1 = %u, ", SIGN (inex1), flags1); 589 inex1 = mpfr_gamma (y, x, MPFR_RNDD); 598 if (inex1 != inex2 || flags1 != flags2 || ! mpfr_equal_p (y, z)) 603 printf ("Expected inex1 = %d, flags1 = %u, ", SIGN (inex1), flags1); 612 inex1 [all...] |
H A D | tacos.c | 35 int inex1, inex2; local 61 inex1 = mpfr_acos (x, x, MPFR_RNDN); /* Pi/2 */ 63 if (inex1 != inex2)
|
H A D | tpow_all.c | 70 * inex1: expected ternary value (if z1 is not a null pointer). 78 mpfr_srcptr z1, int inex1, mpfr_srcptr z2, int inex2, 92 else if (SAME_SIGN (inex1, inex2) && 117 printf (", inex = %d, flags = %u\n", SIGN (inex1), flags1); 136 /* Compare the result (z1,inex1) of mpfr_pow with all flags cleared 145 int inex1, unsigned int flags, const char *s) 158 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, MPFR_FLAGS_ALL, 170 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, flags, 174 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, MPFR_FLAGS_ALL, 186 cmpres (spx, sx, sy, rnd, z1, inex1, z 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 143 test_others(const void *sx, const char *sy, mpfr_rnd_t rnd, mpfr_srcptr x, mpfr_srcptr y, mpfr_srcptr z1, int inex1, unsigned int flags, const char *s) argument [all...] |
H A D | tfrac.c | 36 int inex1, inex2; local 59 inex1 = mpfr_frac (dst, sum, rnd); 61 if (inex1 != inex2) 65 printf ("\nGot %d instead of %d\n", inex1, inex2); 85 inex1 = mpfr_frac (sum, sum, rnd); 86 if (inex1)
|
H A D | tfactorial.c | 79 int inex1, inex2; local 96 inex1 = mpfr_fac_ui (x, n, (mpfr_rnd_t) r); 104 if ((inex1 < 0 && inex2 >= 0) || (inex1 == 0 && inex2 != 0) 105 || (inex1 > 0 && inex2 <= 0))
|
H A D | thypot.c | 139 int inex1, inex2; local 147 inex1 = mpfr_sqrt (z1, z1, MPFR_RNDN); 163 if (! SAME_SIGN (inex1, inex2)) 166 ext ? ", extended exponent range" : "", inex1, inex2);
|
H A D | tstrtofr.c | 1147 int inex1, inex2, i, r; local 1153 inex1 = mpfr_set_si (e, -1, MPFR_RNDN); 1154 MPFR_ASSERTN (inex1 == 0); 1160 inex1 = mpfr_mul_ui (e, e, 10, MPFR_RNDN); 1161 MPFR_ASSERTN (inex1 == 0); 1166 inex1 = mpfr_exp10 (x1, e, rnd); 1167 inex1 = SIGN (inex1); 1178 if (! mpfr_equal_p (x1, x2) || inex1 != inex2) 1182 printf ("Expected inex = %d, x = ", inex1); [all...] |
H A D | tfmod.c | 93 int inex0, inex1; local 98 inex1 = slow_fmod (r1, x, y, rnd); 99 if (!mpfr_equal_p (r0, r1) || inex0 != inex1) 100 test_failed (r1, r0, inex1, inex0, x, y, rnd);
|
H A D | tdiv.c | 979 int inex1, inex2; local 993 inex1 = mpfr_div (z1, x, y, rnd); 1004 if (inex1 != inex2 || mpfr_cmp (z1, z2) != 0)
|
/haiku-buildtools/gcc/mpfr/src/ |
H A D | grandom.c | 35 int inex1, inex2, s1, s2; local 40 inex2 = inex1 = 0; 175 inex1 = mpfr_set (rop1, r1, rnd); 181 inex1 = mpfr_check_range (rop1, inex1, rnd); 197 return INEX (inex1, inex2);
|
H A D | lngamma.c | 65 int inex1, inex2, sign; local 70 MPFR_BLOCK (flags1, inex1 = mpfr_lgamma (s1, &sign, x, MPFR_RNDD)); 71 MPFR_ASSERTN (inex1 != 0); 93 MPFR_BLOCK (flags1, inex1 = mpfr_exp (t1, s1, rnd)); 101 MPFR_ASSERTN ((inex1 > 0 && inex2 > 0) || (inex1 < 0 && inex2 < 0)); 104 inex1 = - inex1; 108 inex1 = 0; /* couldn't determine the result */ 111 return inex1; 191 int ok, inex1, inex2; local [all...] |
/haiku-buildtools/gcc/mpc/src/ |
H A D | mpc.h | 67 #define MPC_INEX12(inex1, inex2) (inex1 | (inex2 << 4))
|