[libmath-prime-util-perl] 26/181: Revert back to SvREFCNT_inc for old Perls
Partha P. Mukherjee
ppm-guest at moszumanska.debian.org
Thu May 21 18:51:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
ppm-guest pushed a commit to annotated tag v0.36
in repository libmath-prime-util-perl.
commit c7e2b5a4be5a7ce856a4dd941854755e2d825937
Author: Dana Jacobsen <dana at acm.org>
Date: Fri Dec 20 07:11:33 2013 -0800
Revert back to SvREFCNT_inc for old Perls
---
Changes | 10 ++++------
XS.xs | 2 +-
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/Changes b/Changes
index 49cf4b5..4299680 100644
--- a/Changes
+++ b/Changes
@@ -27,13 +27,11 @@ Revision history for Perl module Math::Prime::Util
- LMO much faster if -march=native is used for gcc on a platform with
asm popcnt (e.g. Nahalem+, Barcelona+, ARM Neon, SPARC, Power7, etc.).
- - all_factors is faster for native size numbers with many factors. This
- is mostly in preparation for a alldivisors function, and moving a few
- more functions to XS/Perl from Perl/XS to cut overhead.
+ - divisors (all_factors) faster for native size numbers with many factors.
- - Switch from mapes to a cached primorial/totient small phi method.
- Really only affects LMOS and Legendre, but it's pretty significant
- for them. Thanks to Kim Walisch for pointing this out.
+ - Switch from mapes to a cached primorial/totient small phi method in
+ lehmer.c. Really only affects LMOS and Legendre, but it's significant
+ for them. Thanks to Kim Walisch for questioning my earlier decision.
0.35 2013-12-08
diff --git a/XS.xs b/XS.xs
index 4956123..5f8697c 100644
--- a/XS.xs
+++ b/XS.xs
@@ -47,7 +47,7 @@
#if PERL_VERSION < 13 || (PERL_VERSION == 13 && PERL_SUBVERSION < 9)
# define FIX_MULTICALL_REFCOUNT \
- if (CvDEPTH(multicall_cv) > 1) SvREFCNT_inc_simple_void_NN(multicall_cv);
+ if (CvDEPTH(multicall_cv) > 1) SvREFCNT_inc(multicall_cv);
#else
# define FIX_MULTICALL_REFCOUNT
#endif
--
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