]> www.ginac.de Git - cln.git/commitdiff
Fix programs for timing 2-adic operations: tests/time{div,recip}2adic.cc
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Sun, 7 Sep 2008 16:14:55 +0000 (20:14 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Sun, 7 Sep 2008 16:14:55 +0000 (20:14 +0400)
At least they compile and run now. TODO: deobfuscate the code and provide
helpful usage messages.

tests/timediv2adic.cc
tests/timerecip2adic.cc

index 7918c97c10bd9164f9399cd30494af0cf9102170..09264c4cf87cefcd6bd5e38f98e000eb3d8cd599 100644 (file)
@@ -23,7 +23,7 @@ int main (int argc, char * argv[])
        uintL b_len = atoi(argv[2]);
        if (!(a_len >= b_len && b_len > 0))
                exit(1);
-       SAVE_NUM_STACK;
+       CL_ALLOCA_STACK;
        uintD* a_MSDptr;
        uintD* a_LSDptr;
        uintD* b_MSDptr;
index fa2c38e0aa83eb1e40b92b90e78a2544e7a0b047..16f99ae04019184f4b724f12afad71af658a020e 100644 (file)
@@ -20,7 +20,7 @@ int main (int argc, char * argv[])
        if (argc < 2)
                exit(1);
        uintL len = atoi(argv[1]);
-       SAVE_NUM_STACK;
+       CL_ALLOCA_STACK;
        uintD* a_MSDptr;
        uintD* a_LSDptr;
        uintD* b_MSDptr;