summaryrefslogtreecommitdiff
path: root/community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-07 10:25:44 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-07 10:25:44 +0200
commit80653675645ad2f437c230fe7034f9e275ef24e4 (patch)
tree56ae8507a2c861eba1bc08ab058ddc03c4380ecd /community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch
parentfcd3e761035173bf0ed663c179f7e38d636d1c83 (diff)
downloadpackages-80653675645ad2f437c230fe7034f9e275ef24e4.tar.xz
community/heaptrack: backported 32-bit fixes to 1.1.0
Diffstat (limited to 'community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch')
-rw-r--r--community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch b/community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch
new file mode 100644
index 00000000..8448d679
--- /dev/null
+++ b/community/heaptrack/76fd2e84ba133e96d2cfdf90cb715e66e923eb8f.patch
@@ -0,0 +1,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)
+ {