From: Peter Zijlstra Date: Mon, 1 Feb 2010 14:03:07 +0000 (+0100) Subject: bitops: Optimize hweight() by making use of compile-time evaluation X-Git-Tag: v2.6.35-rc1~512^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1527bc8b928dd1399c3d3467dd47d9ede210978a;p=pandora-kernel.git bitops: Optimize hweight() by making use of compile-time evaluation Rename the extisting runtime hweight() implementations to __arch_hweight(), rename the compile-time versions to __const_hweight() and then have hweight() pick between them. Suggested-by: H. Peter Anvin Signed-off-by: Peter Zijlstra LKML-Reference: <20100318111929.GB11152@aftab> Acked-by: H. Peter Anvin LKML-Reference: <1265028224.24455.154.camel@laptop> Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed