mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
We need to refactor code to be explicitely shared by the kernel and at least the tools/ userspace programs, so, till we do that, copy the bare minimum bitmap/bitops code needed by tools/perf. Reported-by: "H. Peter Anvin" <[email protected]> Cc: Frédéric Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
9 lines
175 B
C
9 lines
175 B
C
#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 */
|