From: Akinobu Mita Date: Sun, 26 Mar 2006 09:39:13 +0000 (-0800) Subject: [PATCH] bitops: generic hweight{64,32,16,8}() X-Git-Tag: v2.6.17-rc1~516 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b9ed1a5d2d121f32d2cb4f2b05f1fc57c99c946;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed