aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/include/asm/hweight.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/include/asm/hweight.h')
-rw-r--r--tools/perf/util/include/asm/hweight.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/util/include/asm/hweight.h b/tools/perf/util/include/asm/hweight.h
new file mode 100644
index 000000000000..36cf26d434a5
--- /dev/null
+++ b/tools/perf/util/include/asm/hweight.h
@@ -0,0 +1,8 @@
+#ifndef PERF_HWEIGHT_H
+#define PERF_HWEIGHT_H
+
+#include <linux/types.h>
+unsigned int hweight32(unsigned int w);
+unsigned long hweight64(__u64 w);
+
+#endif /* PERF_HWEIGHT_H */