diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-23 10:00:05 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-23 10:00:05 +0000 |
commit | dba34c25978825fa5e5695957a51f307255a97e4 (patch) | |
tree | b53925874f0a11cf2c29a80228b4cda7dac80523 /tests | |
parent | 0e5db5141160d001c936cb8ea0147795e9bfb8b4 (diff) | |
download | mpfr-dba34c25978825fa5e5695957a51f307255a97e4.tar.gz |
removed printf's
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@139 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tadd.c | 10 | ||||
-rw-r--r-- | tests/tmul_ui.c | 8 |
2 files changed, 8 insertions, 10 deletions
diff --git a/tests/tadd.c b/tests/tadd.c index f20d46c73..0277c0ead 100644 --- a/tests/tadd.c +++ b/tests/tadd.c @@ -230,7 +230,7 @@ main(argc,argv) int argc; char *argv[]; GMP_RNDU, 53, 53, 53, 0.0); check(3.14553393112021279444e-67, 3.14553401015952024126e-67, GMP_RNDU, 53, 53, 53, 0.0); - printf("Checking random precisions\n"); + /* printf("Checking random precisions\n"); */ srand(getpid()); check2(2.26531902208967707071e+168,99,-2.67795218510613988524e+168,67,94,2); check2(-1.21510626304662318398e+145,70,1.21367733647758957118e+145,65,61,3); @@ -275,7 +275,7 @@ printf("\nTest i=%d\n",i); do { y = drand(); } while (isnan(y)); check2(x,px,y,py,pz,rnd_mode); } - printf("Checking double precision (53 bits)\n"); + /* printf("Checking double precision (53 bits)\n"); */ prec = (argc<2) ? 53 : atoi(argv[1]); rnd_mode = (argc<3) ? -1 : atoi(argv[2]); check(-8.22183238641455905806e-19, 7.42227178769761587878e-19, @@ -332,7 +332,7 @@ printf("\nTest i=%d\n",i); rnd = (rnd_mode==-1) ? lrand48()%4 : rnd_mode; check(x, y, rnd, prec, prec, prec, 0.0); } - printf("Checking mpfr_add(x, x, y) with prec=53\n"); + /* printf("Checking mpfr_add(x, x, y) with prec=53\n"); */ for (i=0;i<100000;i++) { x = drand(); y = drand(); @@ -341,7 +341,7 @@ printf("\nTest i=%d\n",i); rnd = (rnd_mode==-1) ? lrand48()%4 : rnd_mode; check3(x, y, rnd); } - printf("Checking mpfr_add(x, y, x) with prec=53\n"); + /* printf("Checking mpfr_add(x, y, x) with prec=53\n"); */ for (i=0;i<100000;i++) { x = drand(); y = drand(); @@ -350,7 +350,7 @@ printf("\nTest i=%d\n",i); rnd = (rnd_mode==-1) ? lrand48()%4 : rnd_mode; check4(x, y, rnd); } - printf("Checking mpfr_add(x, x, x) with prec=53\n"); + /* printf("Checking mpfr_add(x, x, x) with prec=53\n"); */ for (i=0;i<100000;i++) { do { x = drand(); } while (ABS(x)<2.2e-307 || ABS(x)>0.8e308); /* avoid denormalized numbers and overflows */ diff --git a/tests/tmul_ui.c b/tests/tmul_ui.c index b17a8063a..bffd4dec1 100644 --- a/tests/tmul_ui.c +++ b/tests/tmul_ui.c @@ -21,12 +21,10 @@ main(int argc, char **argv) } mpfr_set_d(x, 1.0/3.0, GMP_RNDZ); - mpfr_print_raw(x); putchar('\n'); - mpfr_mul_ui(x, x, 3, GMP_RNDU); - mpfr_print_raw(x); putchar('\n'); - - printf("%f\n", mpfr_get_d(x)); + if (mpfr_get_d(x) != 1.0) { + fprintf(stderr, "U(Z(1/3)*3) does not give 1\n"); exit(1); + } mpfr_clear(x); return(0); |