diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-02-01 14:03:07 (GMT) |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-04-06 22:52:11 (GMT) |
commit | 1527bc8b928dd1399c3d3467dd47d9ede210978a (patch) | |
tree | fb391da915bdae9f933b8170ff61aa43c85ef9ae /arch/x86/include/asm/alternative.h | |
parent | 0fdf86754f70e813845af4abaa805165ce57a0bb (diff) | |
download | linux-fsl-qoriq-1527bc8b928dd1399c3d3467dd47d9ede210978a.tar.xz |
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 <hpa@zytor.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100318111929.GB11152@aftab>
Acked-by: H. Peter Anvin <hpa@zytor.com>
LKML-Reference: <1265028224.24455.154.camel@laptop>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/alternative.h')
0 files changed, 0 insertions, 0 deletions