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) {