[Ecm-commits] r2599 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Wed Feb 11 08:50:00 CET 2015


Author: zimmerma
Date: 2015-02-11 08:50:00 +0100 (Wed, 11 Feb 2015)
New Revision: 2599

Modified:
   trunk/polyeval.c
Log:
improve coverage


Modified: trunk/polyeval.c
===================================================================
--- trunk/polyeval.c	2015-02-11 07:35:31 UTC (rev 2598)
+++ trunk/polyeval.c	2015-02-11 07:50:00 UTC (rev 2599)
@@ -37,6 +37,7 @@
 
 extern unsigned int Fermat;
 
+#ifndef POLYEVALTELLEGEN
 /* algorithm polyeval from section 3.7 of Peter Montgomery's dissertation.
 Input: 
    G - an array of k elements of R, G[i], 0 <= i < k
@@ -111,6 +112,7 @@
   list_set (G + l, T, m);
   polyeval (G + l, m, Tree + 1, T, n, sh + l);
 }
+#endif
 
 #if defined(DEBUG) || defined(DEBUG_TREEDATA)
 void
@@ -320,11 +322,7 @@
         unsigned int lgk, i;
         FILE *TreeFile;
 	char *fullname = (char *) malloc (strlen (TreeFilename) + 1 + 2 + 1);
-        if (fullname == NULL)
-          {
-            fprintf (stderr, "Cannot allocate memory in polyeval_tellegen\n");
-            exit (1);
-          }
+        ASSERT_ALWAYS(fullname != NULL);
 
 	lgk = ceil_log2 (k);
         for (i = 0; i < lgk; i++)



More information about the Ecm-commits mailing list