Copyright 2009, 2012 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
The GNU MP Library test suite is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
The GNU MP Library test suite is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
void
dump_abort (mpf_t a, mpf_t b, int cmp_prec, int lshift1, int lshift2, int hibits, int want, long test)
{
printf ("ERROR in test %ld\n", test);
printf ("want %d got %d from mpf_eq\n", want, 1-want);
printf ("cmp_prec = %d\n", cmp_prec);
printf ("lshift1 = %d\n", lshift1);
printf ("lshift2 = %d\n", lshift2);
printf ("hibits = %d\n", hibits);
hexdump (a); puts ("");
hexdump (b); puts ("");
abort ();
}
void
hexdump (mpf_t x)
{
mp_size_t i; for (i = ABSIZ(x) - 1; i >= 0; i--)
{
gmp_printf ("%0*MX", SZ, PTR(x)[i]); if (i != 0)
printf (" ");
}
}
int
main (int argc, char *argv[])
{ long reps = 10000;
if (argc == 2)
reps = strtol (argv[1], 0, 0);
tests_start ();
check_data ();
check_random (reps);
tests_end (); exit (0);
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-06-06)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.