Lines Matching refs:mpfr_set_si
1 /* Test file for mpfr_set_si, mpfr_set_ui, mpfr_get_si and mpfr_get_ui.
120 inex1 = mpfr_set_si (y, j, MPFR_RNDN);
246 mpfr_set_si (p++, 0, (mpfr_rnd_t) r++);
249 printf ("Error in mpfr_set_si macro: p - x[0] = %d (expecting 1), "
361 mpfr_set_si (x, ts[i], MPFR_RNDN) :
486 inex = mpfr_set_si (x, z, MPFR_RNDZ);
490 mpfr_set_si: expected %ld got %ld\n", z, d);
495 printf ("Error in mpfr_set_si: inex value incorrect for %ld: %d\n",
520 if (mpfr_set_si (x, 5, MPFR_RNDZ) >= 0)
527 if (mpfr_set_si (x, -5, MPFR_RNDZ) <= 0)
534 inex = mpfr_set_si (x, 77617, MPFR_RNDD); /* should be 65536 */
537 printf ("Error in mpfr_set_si(x:3, 77617, MPFR_RNDD)\n");
550 inex = mpfr_set_si (x, 33096, MPFR_RNDU);
553 printf ("Error in mpfr_set_si, exp. 49152, got %ld, inex %d\n",
575 mpfr_set_si (x, -1, (mpfr_rnd_t) r);
584 mpfr_set_si (x, -1, (mpfr_rnd_t) r);
585 mpfr_set_si (x, 0, (mpfr_rnd_t) r);
588 printf ("mpfr_set_si (x, 0) gives -0 for %s\n",
597 mpfr_set_si (x, -1, MPFR_RNDN);
600 printf ("mpfr_set_si (x, -1) fails\n");
608 mpfr_set_si (x, -31, MPFR_RNDN);
611 printf ("mpfr_set_si (x, -31) fails\n");
644 mpfr_set_si (x, -7, MPFR_RNDD);
678 mpfr_set_si (x, -1, MPFR_RNDN);
686 mpfr_set_si (x, LONG_MAX, MPFR_RNDN);
701 mpfr_set_si (x, LONG_MIN, MPFR_RNDN);
755 mpfr_set_si (x, -7, MPFR_RNDD);
760 printf ("Error for mpfr_set_si (x, -7, MPFR_RNDD), prec = 2, emin = 4\n");
765 printf ("mpfr_set_si (x, -7, MPFR_RNDD) should not underflow "