summaryrefslogtreecommitdiff
path: root/tests/tconst_log2.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_log2.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_log2.c')
-rw-r--r--tests/tconst_log2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tconst_log2.c b/tests/tconst_log2.c
index 8322e4232..119f99a7a 100644
--- a/tests/tconst_log2.c
+++ b/tests/tconst_log2.c
@@ -36,7 +36,7 @@ check (mp_prec_t p0, mp_prec_t p1)
mpfr_init (y);
mpfr_init2 (z, p1 + 10);
mpfr_const_log2 (z, GMP_RNDN);
- __gmpfr_const_log2_prec = 1;
+ mpfr_clear_cache (__gmpfr_cache_const_log2);
for (; p0<=p1; p0++)
{