[PATCH] x86_64: Optimize bitmap_weight for small bitmaps
authorAndi Kleen <ak@suse.de>
Mon, 26 Jun 2006 11:57:10 +0000 (13:57 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:16 +0000 (10:48 -0700)
commit08cd36570e47176c7b6bd3e80125aa46c4638097
tree02c9cb3be4a2b520772e9b66bb57901401dd2666
parent5282aab87a8be3f5e6c36a4c2ee4b71852def1bb
[PATCH] x86_64: Optimize bitmap_weight for small bitmaps

Use inline code bitmaps <= BITS_PER_LONG in bitmap_weight. This
gives _much_ better code.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/bitmap.h