Lines Matching defs:fout
74 check (FILE *fout, const char *fmt, mpfr_ptr x)
76 if (mpfr_fprintf (fout, fmt, x) == -1)
78 mpfr_printf ("Error in mpfr_fprintf(fout, \"%s\", %Re)\n",
82 fputc ('\n', fout);
86 check_vfprintf (FILE *fout, const char *fmt, ...)
91 if (mpfr_vfprintf (fout, fmt, ap) == -1)
93 mpfr_printf ("Error in mpfr_vfprintf(fout, \"%s\", ...)\n", fmt);
100 fputc ('\n', fout);
104 check_special (FILE *fout)
111 check (fout, "%Ra", x);
112 check (fout, "%Rb", x);
113 check (fout, "%Re", x);
114 check (fout, "%Rf", x);
115 check (fout, "%Rg", x);
116 check_vfprintf (fout, "%Ra", x);
117 check_vfprintf (fout, "%Rb", x);
118 check_vfprintf (fout, "%Re", x);
119 check_vfprintf (fout, "%Rf", x);
120 check_vfprintf (fout, "%Rg", x);
123 check (fout, "%Ra", x);
124 check (fout, "%Rb", x);
125 check (fout, "%Re", x);
126 check (fout, "%Rf", x);
127 check (fout, "%Rg", x);
128 check_vfprintf (fout, "%Ra", x);
129 check_vfprintf (fout, "%Rb", x);
130 check_vfprintf (fout, "%Re", x);
131 check_vfprintf (fout, "%Rf", x);
132 check_vfprintf (fout, "%Rg", x);
135 check (fout, "%Ra", x);
136 check (fout, "%Rb", x);
137 check (fout, "%Re", x);
138 check (fout, "%Rf", x);
139 check (fout, "%Rg", x);
140 check_vfprintf (fout, "%Ra", x);
141 check_vfprintf (fout, "%Rb", x);
142 check_vfprintf (fout, "%Re", x);
143 check_vfprintf (fout, "%Rf", x);
144 check_vfprintf (fout, "%Rg", x);
150 check_mixed (FILE *fout)
198 check_vfprintf (fout, "a. %Ra, b. %u, c. %lx%n", mpfr, ui, ulo, &j);
200 check_vfprintf (fout, "a. %c, b. %Rb, c. %u, d. %li%ln", i, mpfr, i,
203 check_vfprintf (fout, "a. %hi, b. %*f, c. %Re%hn", ush, 3, f, mpfr, &ush);
205 check_vfprintf (fout, "a. %hi, b. %f, c. %#.2Rf%n", sh, d, mpfr, &i);
207 check_vfprintf (fout, "a. %R*A, b. %Fe, c. %i%zn", rnd, mpfr, mpf, sz,
210 check_vfprintf (fout, "a. %Pu, b. %c, c. %Zi%Zn", prec, ch, mpz, &mpz);
212 check_vfprintf (fout, "%% a. %#.0RNg, b. %Qx%Rn, c. %p", mpfr, mpq, &mpfr,
218 check_vfprintf (fout, "%% a. %RNg, b. %Qx, c. %td%tn", mpfr, mpq, p, &p);
234 check_vfprintf (fout, "a. %RA, b. %Lf, c. %QX%zn", mpfr, ld, mpq, &sz);
239 check_vfprintf (fout, "a. %hhi, b. %RA, c. %hhu%hhn", sch, mpfr, uch, &uch);
245 check_vfprintf (fout, "a. %Mx b. %Re%Mn", limb[0], mpfr, &limb[0]);
258 check_vfprintf (fout, "a. %Re .b %Nx%Nn", mpfr, limb, limb_size, limb,
275 check_vfprintf (fout, "a. %Re, b. %llx%Qn", mpfr, ullo, &mpq);
277 check_vfprintf (fout, "a. %lli, b. %Rf%Fn", llo, mpfr, &mpf);
287 check_vfprintf (fout, "a. %*RA, b. %ji%Qn", 10, mpfr, im, &mpq);
289 check_vfprintf (fout, "a. %.*Re, b. %jx%Fn", 10, mpfr, uim, &mpf);
301 check_random (FILE *fout, int nb_tests)
367 mpfr_fprintf (fout, "mpfr_fprintf(fout, \"%s\", %d, %s, %Re)\n",
369 ret = mpfr_fprintf (fout, fmt, prec, rnd, x);
376 mpfr_fprintf (fout, "too large !");
380 mpfr_printf ("Error in mpfr_fprintf(fout, \"%s\", %d, %s, %Re)\n",
385 mpfr_fprintf (fout, "\n");
395 bug_20090316 (FILE *fout)
403 check (fout, "%-#.4095RDg\n", x);
411 FILE *fout;
421 fout = fopen ("/dev/null", "w");
423 if (fout == NULL)
425 fout = fopen ("tfprintf_out.txt", "w");
427 if (fout == NULL)
436 fout = stdout;
440 check_special (fout);
441 check_mixed (fout);
442 check_random (fout, N);
444 bug_20090316 (fout);
446 fclose (fout);