[libmath-prime-util-perl] 41/54: Try harder to use lgamma

Partha P. Mukherjee ppm-guest at moszumanska.debian.org
Thu May 21 18:52:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

ppm-guest pushed a commit to annotated tag v0.38
in repository libmath-prime-util-perl.

commit d7f425d581e59c03e462789f29403023ac4ef5df
Author: Dana Jacobsen <dana at acm.org>
Date:   Tue Feb 25 10:08:19 2014 -0800

    Try harder to use lgamma
---
 aks.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/aks.c b/aks.c
index 22d722f..ed754b5 100644
--- a/aks.c
+++ b/aks.c
@@ -29,8 +29,9 @@
 
 #define SQRTN_SHORTCUT 1
 
-/* Use the improvements from Bornemann's 2002 implementation */
-#if (defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99) && !defined(_MSC_VER)
+/* Use improvements from Bornemann's 2002 implementation if we have lgamma */
+#if !defined(_MSC_VER) && \
+    (defined(__USE_ISOC99) || defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) || defined(__cplusplus) || !defined(__STRICT_ANSI__) || __STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600)
 #define IMPL_BORNEMANN 1
 #else
 #define IMPL_BORNEMANN 0

-- 
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