File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace cp_algo::math {
1515 base x, y;
1616 base g = 1 ;
1717 while (g == 1 ) {
18- for (int i = 0 ; i < 64 ; i++) {
18+ for (int i = 1 ; i <= 64 ; i++) {
1919 x = f (x);
2020 y = f (f (y));
2121 if (x == y) [[unlikely]] {
Original file line number Diff line number Diff line change 44#include < chrono>
55#include < string>
66namespace cp_algo {
7- void checkpoint (std::string const & msg = " " ) {
7+ void checkpoint ([[maybe_unused]] std::string const & msg = " " ) {
8+ #ifdef CP_ALGO_CHECKPOINT
89 static double last = 0 ;
910 double now = (double )clock () / CLOCKS_PER_SEC;
1011 double delta = now - last;
1112 last = now;
1213 if (msg.size ()) {
13- #ifdef CP_ALGO_CHECKPOINT
1414 std::cerr << msg << " : " << delta * 1000 << " ms\n " ;
15- #endif
1615 }
16+ #endif
1717 }
1818}
1919#endif // CP_ALGO_UTIL_CHECKPOINT_HPP
You can’t perform that action at this time.
0 commit comments