[libmath-prime-util-perl] 38/55: Make MPFR free cache after eint
Partha P. Mukherjee
ppm-guest at moszumanska.debian.org
Thu May 21 18:53:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
ppm-guest pushed a commit to annotated tag v0.41
in repository libmath-prime-util-perl.
commit 45cf33bd1db2af9f029a20717046b50e54489b3d
Author: Dana Jacobsen <dana at acm.org>
Date: Tue May 13 16:59:08 2014 -0700
Make MPFR free cache after eint
---
lib/Math/Prime/Util/PP.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/Math/Prime/Util/PP.pm b/lib/Math/Prime/Util/PP.pm
index 48153bc..d795a7e 100644
--- a/lib/Math/Prime/Util/PP.pm
+++ b/lib/Math/Prime/Util/PP.pm
@@ -3193,6 +3193,7 @@ sub ExponentialIntegral {
Math::MPFR::Rmpfr_set_prec($eix, $bit_precision);
Math::MPFR::Rmpfr_eint($eix, $rx, $rnd);
my $strval = Math::MPFR::Rmpfr_get_str($eix, 10, 0, $rnd);
+ Math::MPFR::Rmpfr_free_cache();
return ($wantbf) ? Math::BigFloat->new($strval,$wantbf) : 0.0 + $strval;
}
@@ -3294,6 +3295,7 @@ sub LogarithmicIntegral {
Math::MPFR::Rmpfr_set_prec($lix, $bit_precision);
Math::MPFR::Rmpfr_eint($lix, $rx, $rnd);
my $strval = Math::MPFR::Rmpfr_get_str($lix, 10, 0, $rnd);
+ Math::MPFR::Rmpfr_free_cache();
return ($wantbf) ? Math::BigFloat->new($strval,$wantbf) : 0.0 + $strval;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git
More information about the Pkg-perl-cvs-commits
mailing list