summaryrefslogtreecommitdiff
path: root/tests/trandom.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-02-13 17:25:19 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-02-13 17:25:19 +0000
commitbc83eac75223b817466228014c2e227febf5f1da (patch)
tree37c7afff73e1d82383de0bc35b22e02450d410fd /tests/trandom.c
parent79f66541d105fa5c4e65a85d666867193e43213b (diff)
downloadmpfr-bc83eac75223b817466228014c2e227febf5f1da.tar.gz
Code reformatted. C99 comment replaced by traditional comment.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4012 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/trandom.c')
-rw-r--r--tests/trandom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/trandom.c b/tests/trandom.c
index b9114e1b3..f62f3da8a 100644
--- a/tests/trandom.c
+++ b/tests/trandom.c
@@ -108,7 +108,7 @@ test_random2 (long nbtests, mp_prec_t prec, int verbose)
/* check that the number is normalized */
if (! (MPFR_MANT(x)[MPFR_LIMB_SIZE(x) - 1] >> (BITS_PER_MP_LIMB - 1)))
- {
+ {
printf ("Error: mpfr_random2() returns unnormalized numbers:\n");
mpfr_print_binary (x); puts ("");
exit (1);
@@ -221,7 +221,7 @@ test_urandomb (long nbtests, mp_prec_t prec, int verbose)
}
av /= nbtests;
- var = (var /nbtests) - av*av;
+ var = (var / nbtests) - av * av;
th = (double)nbtests / size_tab;
printf("Average = %.5f\nVariance = %.5f\n", av, var);