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 {
15
15
base x, y;
16
16
base g = 1 ;
17
17
while (g == 1 ) {
18
- for (int i = 0 ; i < 64 ; i++) {
18
+ for (int i = 1 ; i <= 64 ; i++) {
19
19
x = f (x);
20
20
y = f (f (y));
21
21
if (x == y) [[unlikely]] {
Original file line number Diff line number Diff line change 4
4
#include < chrono>
5
5
#include < string>
6
6
namespace cp_algo {
7
- void checkpoint (std::string const & msg = " " ) {
7
+ void checkpoint ([[maybe_unused]] std::string const & msg = " " ) {
8
+ #ifdef CP_ALGO_CHECKPOINT
8
9
static double last = 0 ;
9
10
double now = (double )clock () / CLOCKS_PER_SEC;
10
11
double delta = now - last;
11
12
last = now;
12
13
if (msg.size ()) {
13
- #ifdef CP_ALGO_CHECKPOINT
14
14
std::cerr << msg << " : " << delta * 1000 << " ms\n " ;
15
- #endif
16
15
}
16
+ #endif
17
17
}
18
18
}
19
19
#endif // CP_ALGO_UTIL_CHECKPOINT_HPP
You can’t perform that action at this time.
0 commit comments