[Ecm-commits] r2426 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Wed Feb 20 19:21:59 CET 2013


Author: morain
Date: 2013-02-20 19:21:58 +0100 (Wed, 20 Feb 2013)
New Revision: 2426

Log:
Always cool to look for a bug that doesn't exist.


Modified:
   trunk/addlaws.c
   trunk/torsions.c
Modified: trunk/addlaws.c
===================================================================
--- trunk/addlaws.c	2013-02-20 18:15:26 UTC (rev 2425)
+++ trunk/addlaws.c	2013-02-20 18:21:58 UTC (rev 2426)
@@ -1617,12 +1617,12 @@
     ell_point_init(P0, E, n);
     ell_point_set_to_zero(P0, E, n);
 
-#if DEBUG_ADD_LAWS >= 0
+#if DEBUG_ADD_LAWS >= 2
     printf("P:="); ell_point_print(P, E, n); printf(";\n");
 #endif
     /* S = [[ts, 2*ds+1], ... */
     for(j = 0; j < iS; j += 2){
-#if DEBUG_ADD_LAWS >= 0
+#if DEBUG_ADD_LAWS >= 2
 	printf("P0:="); ell_point_print(P0, E, n); printf(";\n");
 #endif
 	i = abs(S[j+1]) >> 1; /* (abs(S[j+1])-1)/2, S[j+1] is always odd */
@@ -1632,7 +1632,7 @@
 		status = 0;
 		break;
 	    }
-#if DEBUG_ADD_LAWS >= 0
+#if DEBUG_ADD_LAWS >= 2
 	    printf("iP%d:=", i); ell_point_print(iP[i], E, n); printf(";\n");
 	    printf("Radd:="); ell_point_print(P0, E, n); printf(";\n");
 	    printf("Q:=ProjEcmAdd(P0, iP%d, E, N); ProjEcmEqual(Q, Radd, N);\n", i);
@@ -1644,7 +1644,7 @@
 		status = 0;
 		break;
 	    }
-#if DEBUG_ADD_LAWS >= 0
+#if DEBUG_ADD_LAWS >= 2
 	    printf("Rsub:="); ell_point_print(P0, E, n); printf(";\n");
 #endif
 	}
@@ -1654,7 +1654,7 @@
 		status = 0;
 		break;
 	    }
-#if DEBUG_ADD_LAWS >= 0
+#if DEBUG_ADD_LAWS >= 2
 	    printf("Rdup:="); ell_point_print(P0, E, n); printf(";\n");
 #endif
 	}

Modified: trunk/torsions.c
===================================================================
--- trunk/torsions.c	2013-02-20 18:15:26 UTC (rev 2425)
+++ trunk/torsions.c	2013-02-20 18:21:58 UTC (rev 2426)
@@ -754,7 +754,7 @@
 	    ret = ECM_FACTOR_FOUND_STEP1;
 	    break;
 	}
-#if DEBUG_TORSION >= 0
+#if DEBUG_TORSION >= 2
 	printf("(s, t)[%d]:=", u);
 	pt_print(Q, n);
 	printf(";\n");




More information about the Ecm-commits mailing list