[Ecm-commits] r2645 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Fri Feb 27 15:41:46 CET 2015


Author: zimmerma
Date: 2015-02-27 15:41:46 +0100 (Fri, 27 Feb 2015)
New Revision: 2645

Modified:
   trunk/test.ecm
Log:
more changes for 32-bit machines


Modified: trunk/test.ecm
===================================================================
--- trunk/test.ecm	2015-02-27 14:16:00 UTC (rev 2644)
+++ trunk/test.ecm	2015-02-27 14:41:46 UTC (rev 2645)
@@ -237,10 +237,8 @@
 # Note: on 32-bit machines, param 1 (ECM_PARAM_BATCH_SQUARE) does not work
 $ECM -printconfig | grep "GMP_NUMB_BITS = 64"
 if [ "$?" == "0" ]; then
+
 echo 31622776601683791911 | $ECM -param 1 11000
-fi
-echo 31622776601683791911 | $ECM -param 2 11000
-echo 31622776601683791911 | $ECM -param 3 11000
 
 echo 31622776601683791911 | $ECM -param 1 -A 27063318473587686303 11000
 checkcode $? 0
@@ -261,6 +259,11 @@
 echo 4294967291 | $ECM -param 1 -A 17 1000
 checkcode $? 8
 
+fi
+
+echo 31622776601683791911 | $ECM -param 2 11000
+echo 31622776601683791911 | $ECM -param 3 11000
+
 # same with param=2, works only with ECM_MOD_MODMULN
 echo 458903930815802071188998938170281707063809443792768383215233 | $ECM -sigma 2:142 10000
 checkcode $? 14
@@ -385,13 +388,13 @@
 
 echo 10000000000000000000000000000000000000121 | $ECM -param 0 -sigma 291 -go 5994496018878137 4372759;  checkcode $? 8
 
-fi
-
 if [ "$MUL" = "modmuln" ]; then
-# exercise batch mode
+# exercise batch mode: since param=1, does not work on 32-bit machines
 echo 33852066257429811148979390609187539760850944806763555795340084882048986912482949506591909041130651770779842162499482875755533111808276172876211496409325473343590723224081353129229935527059488811457730702694849036693756201766866018562295004353153066430367 | $ECM -v -sigma 1:17 1e6; checkcode $? 0
 fi
 
+fi
+
 # exercise -h
 $ECM -h
 



More information about the Ecm-commits mailing list