[libmath-prime-util-perl] 12/54: Wrap dlp_prho debugging vomit inside #ifdef DEBUG, as nobody else wants to see that detail

Partha P. Mukherjee ppm-guest at moszumanska.debian.org
Thu May 21 18:52:07 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 9d134ebf21d949a0bfe3df16b7157384120b1f02
Author: Dana Jacobsen <dana at acm.org>
Date:   Fri Jan 31 00:27:41 2014 -0800

    Wrap dlp_prho debugging vomit inside #ifdef DEBUG, as nobody else wants to see that detail
---
 factor.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/factor.c b/factor.c
index 752ab51..3e02509 100644
--- a/factor.c
+++ b/factor.c
@@ -930,7 +930,11 @@ UV dlp_prho(UV a, UV g, UV p, UV maxrounds) {
   UV n = znorder(g, p);
   UV u=1, v=0, w=0;
   UV U=u, V=v, W=w;
+#ifdef DEBUG
   int const verbose = _XS_get_verbose();
+#else
+  int const verbose = 0;
+#endif
 
   if (verbose > 1 && n != p-1) printf("for g=%lu p=%lu, order is %lu\n", g, p, n);
   if (maxrounds > n) maxrounds = n;

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