mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
de1e17b1d0
copy some more kernel files accessed from tools/, check for drift. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-omz8xdyvvxgjiuqzwj6ecm6j@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
26 lines
516 B
C
26 lines
516 B
C
#ifndef _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_
|
|
#define _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_
|
|
|
|
#include <asm/types.h>
|
|
|
|
static inline unsigned int __arch_hweight32(unsigned int w)
|
|
{
|
|
return __sw_hweight32(w);
|
|
}
|
|
|
|
static inline unsigned int __arch_hweight16(unsigned int w)
|
|
{
|
|
return __sw_hweight16(w);
|
|
}
|
|
|
|
static inline unsigned int __arch_hweight8(unsigned int w)
|
|
{
|
|
return __sw_hweight8(w);
|
|
}
|
|
|
|
static inline unsigned long __arch_hweight64(__u64 w)
|
|
{
|
|
return __sw_hweight64(w);
|
|
}
|
|
#endif /* _ASM_GENERIC_BITOPS_HWEIGHT_H_ */
|