aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lguest
diff options
context:
space:
mode:
authorAlexander van Heukelum <heukelum@mailshack.com>2008-04-01 17:42:21 +0200
committerIngo Molnar <mingo@elte.hu>2008-04-26 19:21:17 +0200
commit3a48305028aa38afba93fc05066c71a6ee668ad8 (patch)
tree5fd5b9bd9b4daa7cafb87c2706693fe57bc8af51 /arch/x86/lguest
parentx86: switch 64-bit to generic find_first_bit (diff)
downloadlinux-dev-3a48305028aa38afba93fc05066c71a6ee668ad8.tar.xz
linux-dev-3a48305028aa38afba93fc05066c71a6ee668ad8.zip
x86: optimize find_first_bit for small bitmaps
Avoid a call to find_first_bit if the bitmap size is know at compile time and small enough to fit in a single long integer. Modeled after an optimization in the original x86_64-specific code. Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/lguest')
0 files changed, 0 insertions, 0 deletions