Commit d7f124f563b8cfd04e573ca874c2469c67dea31b

Karel Miko 2018-12-02T13:12:30

avoid c++ comments

diff --git a/demo/timing.c b/demo/timing.c
index 78fce1e..a7edb79 100644
--- a/demo/timing.c
+++ b/demo/timing.c
@@ -66,7 +66,7 @@ static uint64_t TIMFUNC(void)
    return result;
 #endif
 
-   // Microsoft and Intel Windows compilers
+   /* Microsoft and Intel Windows compilers */
 #elif defined _M_IX86
    __asm rdtsc
 #elif defined _M_AMD64
@@ -82,9 +82,9 @@ static uint64_t TIMFUNC(void)
 }
 
 #define DO(x) x; x;
-//#define DO4(x) DO2(x); DO2(x);
-//#define DO8(x) DO4(x); DO4(x);
-//#define DO(x)  DO8(x); DO8(x);
+/*#define DO4(x) DO2(x); DO2(x);*/
+/*#define DO8(x) DO4(x); DO4(x);*/
+/*#define DO(x)  DO8(x); DO8(x);*/
 
 #ifdef TIMING_NO_LOGS
 #define FOPEN(a, b)     NULL
diff --git a/etc/2kprime.c b/etc/2kprime.c
index a43e1b4..829474a 100644
--- a/etc/2kprime.c
+++ b/etc/2kprime.c
@@ -37,7 +37,7 @@ top:
             if ((clock() - t1) > CLOCKS_PER_SEC) {
                printf(".");
                fflush(stdout);
-//            sleep((clock() - t1 + CLOCKS_PER_SEC/2)/CLOCKS_PER_SEC);
+/*            sleep((clock() - t1 + CLOCKS_PER_SEC/2)/CLOCKS_PER_SEC); */
                t1 = clock();
             }
 
diff --git a/etc/tune.c b/etc/tune.c
index 82e1796..a512a4e 100644
--- a/etc/tune.c
+++ b/etc/tune.c
@@ -31,7 +31,7 @@ static uint64_t TIMFUNC(void)
    return result;
 #      endif
 
-   // Microsoft and Intel Windows compilers
+   /* Microsoft and Intel Windows compilers */
 #   elif defined _M_IX86
    __asm rdtsc
 #   elif defined _M_AMD64
diff --git a/mtest/mtest.c b/mtest/mtest.c
index 009655a..3492f73 100644
--- a/mtest/mtest.c
+++ b/mtest/mtest.c
@@ -293,7 +293,7 @@ int main(int argc, char *argv[])
          rand_num2(&a);
          rand_num2(&b);
          rand_num2(&c);
-//      if (c.dp[0]&1) mp_add_d(&c, 1, &c);
+/*      if (c.dp[0]&1) mp_add_d(&c, 1, &c); */
          a.sign = b.sign = c.sign = 0;
          mp_exptmod(&a, &b, &c, &d);
          printf("expt\n");