[Ecm-discuss] Re: ecm 6.1 issue

Paul Zimmermann Paul.Zimmermann at loria.fr
Ven 7 Juil 13:12:46 CEST 2006


> Date: Fri, 7 Jul 2006 16:34:38 +1000
> From: Allan Steel <allan at maths.usyd.edu.au>
> 
> Hi Paul,
> 
> In ecm 6.1, the ecm_init() function does not seem to initialize
> the new stage1time field to zero, so one has to do that separately.
> I guess should be added to ecm_init()?
> 
> Allan

Right. I have also initialized the use_ntt field to 1:

--- factor.c    (revision 941)
+++ factor.c    (working copy)
@@ -42,12 +42,14 @@
   q->os = stdout; /* standard output */
   q->es = stderr; /* error output */
   q->TreeFilename = NULL;
-  q->maxmem = 0.;
+  q->maxmem = 0.0;
+  q->stage1time = 0.0;
   MEMORY_TAG;
   gmp_randinit_default (q->rng);
   MEMORY_TAG;
   gmp_randseed_ui (q->rng, get_random_ui ());
   MEMORY_UNTAG;
+  q->use_ntt = 1;
   q->stop_asap = NULL;
 }

Paul




Plus d'informations sur la liste de diffusion Ecm-discuss