[Ecm-commits] r2648 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Sat Feb 28 11:21:20 CET 2015


Author: morain
Date: 2015-02-28 11:21:20 +0100 (Sat, 28 Feb 2015)
New Revision: 2648

Modified:
   trunk/ecm.c
Log:
looking for a bug.


Modified: trunk/ecm.c
===================================================================
--- trunk/ecm.c	2015-02-27 15:50:58 UTC (rev 2647)
+++ trunk/ecm.c	2015-02-28 10:21:20 UTC (rev 2648)
@@ -780,12 +780,16 @@
     else{
 	if (!mpres_invert (xB, P->z, n)){ /* Factor found? */
 	    mpres_gcd (f, P->z, n);
+	    gmp_printf("# factor found during normalization: %Zd\n", f);
 	    ret = ECM_FACTOR_FOUND_STEP1;
 	}
 	else{
 	    /* normalize to get (x:y:1) valid in W or H form... */
+	    mpres_get_z(f, xB, n); gmp_printf("1/z=%Zd\n", f);
 	    mpres_mul (P->x, P->x, xB, n);
 	    mpres_mul (P->y, P->y, xB, n);
+	    mpres_get_z(f, P->x, n); gmp_printf("x/z=%Zd\n", f);
+	    mpres_get_z(f, P->y, n); gmp_printf("y/z=%Zd\n", f);
 	    mpres_set_ui (P->z, 1, n);
 	}
     }



More information about the Ecm-commits mailing list