]> www.ginac.de Git - cln.git/blobdiff - tests/timesquare.cc
Replace CL_REQUIRE/CL_PROVIDE(cl_MI) with portable code.
[cln.git] / tests / timesquare.cc
index 017559694dd44867b4e21d7dbc72908975a40bee..f8bc9799c283ccd0fd4cac0f3ce5ee5e8756ad8c 100644 (file)
@@ -2,9 +2,10 @@
 #include <cln/io.h>
 #include <cln/integer.h>
 #include <cln/random.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
 #include <cln/timing.h>
+using namespace cln;
 
 int main (int argc, char * argv[])
 {
@@ -21,12 +22,12 @@ int main (int argc, char * argv[])
        cl_I M2 = (cl_I)1 << (intDsize*m2);
        cl_I a = random_I(M1);
        cl_I b = random_I(M2);
-       fprint(stderr, "Squaring:       ");
+       fprint(std::cerr, "Squaring:       ");
        { CL_TIMING;
          for (int rep = repetitions; rep > 0; rep--)
            { cl_I p = a * a; }
        }
-       fprint(stderr, "Multiplication: ");
+       fprint(std::cerr, "Multiplication: ");
        { CL_TIMING;
          for (int rep = repetitions; rep > 0; rep--)
            { cl_I p = a * b; }