summaryrefslogtreecommitdiff
path: root/tests/tdiv_ui.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-04 15:20:17 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-04 15:20:17 +0000
commit198ce68734b7210f478fc188acf7d74b53d33f95 (patch)
tree8fe82e425bf70361d454c01261add73ee7adcc31 /tests/tdiv_ui.c
parent555404012dcec182046f424cc2b186027f3a5a94 (diff)
downloadmpfr-198ce68734b7210f478fc188acf7d74b53d33f95.tar.gz
fixed dummy init2 followed by set_prec
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3528 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv_ui.c')
-rw-r--r--tests/tdiv_ui.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/tdiv_ui.c b/tests/tdiv_ui.c
index 692adadf8..73f748307 100644
--- a/tests/tdiv_ui.c
+++ b/tests/tdiv_ui.c
@@ -213,17 +213,16 @@ main (int argc, char **argv)
check("1.0", 2116118, GMP_RNDN, "4.7256343927890600483e-7");
check("1.098612288668109782", 5, GMP_RNDN, "0.21972245773362195087");
- mpfr_init2(x, 100);
- mpfr_set_prec(x, 53);
- mpfr_set_ui(x, 3, GMP_RNDD);
- mpfr_log(x, x, GMP_RNDD);
- mpfr_div_ui(x, x, 5, GMP_RNDD);
+ mpfr_init2 (x, 53);
+ mpfr_set_ui (x, 3, GMP_RNDD);
+ mpfr_log (x, x, GMP_RNDD);
+ mpfr_div_ui (x, x, 5, GMP_RNDD);
if (mpfr_cmp_str1 (x, "0.21972245773362189536"))
{
printf ("Error in mpfr_div_ui for x=ln(3), u=5\n");
exit (1);
}
- mpfr_clear(x);
+ mpfr_clear (x);
test_generic_ui (2, 200, 100);