]> www.ginac.de Git - cln.git/blobdiff - tests/timeMImisc5.cc
* include/cln/floatformat.h: Do define a type here.
[cln.git] / tests / timeMImisc5.cc
index 5473f06105058800eb4e5ef12557b539682d49a9..45baa0bb5bc1bc1750074d45e1cfb0b5d12f148b 100644 (file)
@@ -2,9 +2,10 @@
 #include <cln/io.h>
 #include <cln/integer.h>
 #include <cln/modinteger.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
 #include <cln/timing.h>
+using namespace cln;
 
 int main (int argc, char * argv[])
 {
@@ -20,17 +21,17 @@ int main (int argc, char * argv[])
        {
                cl_MI a = R->canonhom("1111111111111111111111111111111111111111111111111");
                cl_MI b = R->canonhom("777777777777777777777777777777777777777777777777");
-               stdout << "product modulo p" << endl;
+               cout << "product modulo p" << endl;
                { CL_TIMING;
                  for (int rep = repetitions; rep > 0; rep--)
                    { cl_MI c = R->mul(a,b); }
                }
-               stdout << "square modulo p" << endl;
+               cout << "square modulo p" << endl;
                { CL_TIMING;
                  for (int rep = repetitions; rep > 0; rep--)
                    { cl_MI c = R->square(a); }
                }
-               stdout << "quotient modulo p" << endl;
+               cout << "quotient modulo p" << endl;
                { CL_TIMING;
                  for (int rep = repetitions; rep > 0; rep--)
                    { cl_MI c = R->div(a,b); }
@@ -39,17 +40,17 @@ int main (int argc, char * argv[])
        {
                cl_MI a = R->canonhom("1234567890123456789012345678901234567890123456789");
                cl_MI b = R->canonhom("909090909090909090909090909090909090909090909090");
-               stdout << "product modulo p" << endl;
+               cout << "product modulo p" << endl;
                { CL_TIMING;
                  for (int rep = repetitions; rep > 0; rep--)
                    { cl_MI c = R->mul(a,b); }
                }
-               stdout << "square modulo p" << endl;
+               cout << "square modulo p" << endl;
                { CL_TIMING;
                  for (int rep = repetitions; rep > 0; rep--)
                    { cl_MI c = R->square(a); }
                }
-               stdout << "quotient modulo p" << endl;
+               cout << "quotient modulo p" << endl;
                { CL_TIMING;
                  for (int rep = repetitions; rep > 0; rep--)
                    { cl_MI c = R->div(a,b); }