We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a47f6af commit 60888f0Copy full SHA for 60888f0
cp-algo/util/bump_alloc.hpp
@@ -2,7 +2,7 @@
2
#define CP_ALGO_UTIL_BUMP_ALLOC_HPP
3
#include <cstddef>
4
namespace cp_algo {
5
- char buf[450 << 20] alignas(32);
+ alignas(32) char buf[450 << 20];
6
size_t buf_ind = sizeof buf;
7
template<class T> struct bump_alloc {
8
typedef T value_type;
cp-algo/util/checkpoint.hpp
@@ -10,7 +10,9 @@ namespace cp_algo {
10
double delta = now - last;
11
last = now;
12
if(msg.size()) {
13
+#ifdef CP_ALGO_CHECKPOINT
14
std::cerr << msg << ": " << delta * 1000 << " ms\n";
15
+#endif
16
}
17
18
0 commit comments