We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a82e06f commit 9ab5baaCopy full SHA for 9ab5baa
1 file changed
src/alfred/debug
@@ -30,6 +30,15 @@ std::string _bin(long long v) {
30
return res;
31
}
32
33
+std::string _bin(long long v, int d) {
34
+ assert(v >= 0);
35
+ std::string res;
36
+ for (int i = d - 1; i >= 0; i--) {
37
+ res += char((v >> i & 1) | 48);
38
+ }
39
+ return res;
40
+}
41
+
42
void __print(int x) { cerr << x; }
43
void __print(long x) { cerr << x; }
44
void __print(long long x) {
0 commit comments