summaryrefslogtreecommitdiff
path: root/community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch
blob: 8448d679080920415ef2a2e58f2d1dc73748c38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/util/linewriter.h b/src/util/linewriter.h
index 73a7930..e895e87 100644
--- a/src/util/linewriter.h
+++ b/src/util/linewriter.h
@@ -158,6 +158,11 @@ public:
         return __builtin_clzl(V);
     }
 
+    inline static unsigned clz(long long unsigned V)
+    {
+        return __builtin_clzll(V);
+    }
+
     template <typename V>
     static char* writeHexNumber(char* buffer, V value)
     {