summaryrefslogtreecommitdiff
path: root/tests/tconst_pi.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-04-21 12:36:30 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-04-21 12:36:30 +0000
commit208bfd1424477764d84b1a72d7c05489efae83a7 (patch)
tree458d0f78d626a9266f3c0de113557dc28bbf18e9 /tests/tconst_pi.c
parent392bf02ed16af2d4838b79c397225aa1ff63efbe (diff)
downloadmpfr-208bfd1424477764d84b1a72d7c05489efae83a7.tar.gz
Add preliminary generic code to handle cached const.
Move const_pi, const_log2 to use this generic cache, which fix bugs of the previous implementation. const_euler is now cached too. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2876 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_pi.c')
-rw-r--r--tests/tconst_pi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tconst_pi.c b/tests/tconst_pi.c
index 33f9f3400..9fc388136 100644
--- a/tests/tconst_pi.c
+++ b/tests/tconst_pi.c
@@ -83,6 +83,7 @@ main (int argc, char *argv[])
else if (mpfr_cmp_str1 (x, "3.141592653589793116") )
{
printf ("mpfr_const_pi failed for prec=53\n");
+ mpfr_out_str (stdout, 10, 0, x, GMP_RNDN); putchar('\n');
exit (1);
}