linux-kernel-test/include/asm-generic/bitops
Akinobu Mita 3b9ed1a5d2 [PATCH] bitops: generic hweight{64,32,16,8}()
This patch introduces the C-language equivalents of the functions below:

unsigned int hweight32(unsigned int w);
unsigned int hweight16(unsigned int w);
unsigned int hweight8(unsigned int w);
unsigned long hweight64(__u64 w);

In include/asm-generic/bitops/hweight.h

This code largely copied from: include/linux/bitops.h

Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-26 08:57:11 -08:00
..
__ffs.h [PATCH] bitops: generic __ffs() 2006-03-26 08:57:10 -08:00
atomic.h [PATCH] bitops: generic {,test_and_}{set,clear,change}_bit() 2006-03-26 08:57:10 -08:00
ffs.h [PATCH] bitops: generic ffs() 2006-03-26 08:57:11 -08:00
ffz.h [PATCH] bitops: generic ffz() 2006-03-26 08:57:10 -08:00
find.h [PATCH] bitops: generic find_{next,first}{,_zero}_bit() 2006-03-26 08:57:11 -08:00
fls64.h [PATCH] bitops: generic fls64() 2006-03-26 08:57:10 -08:00
fls.h [PATCH] bitops: generic fls() 2006-03-26 08:57:10 -08:00
hweight.h [PATCH] bitops: generic hweight{64,32,16,8}() 2006-03-26 08:57:11 -08:00
non-atomic.h [PATCH] bitops: generic __{,test_and_}{set,clear,change}_bit() and test_bit() 2006-03-26 08:57:10 -08:00
sched.h [PATCH] bitops: generic sched_find_first_bit() 2006-03-26 08:57:11 -08:00