]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/64: Adjust types of temporaries used by ffs()/fls()/fls64()
authorJan Beulich <JBeulich@suse.com>
Mon, 10 Sep 2012 11:04:16 +0000 (12:04 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 13 Sep 2012 15:43:58 +0000 (17:43 +0200)
commit1edfbb4153bd29bcf8d2236676238d5237972be1
tree2c1e7fdf7f0d25adf12e6b334194dcbd2c6e3e56
parent6eebdda35e6b18d0dddb2a44e34211bd94f0cad6
x86/64: Adjust types of temporaries used by ffs()/fls()/fls64()

The 64-bit special cases of the former two (the thrird one is
64-bit only anyway) don't need to use "long" temporaries, as the
result will always fit in a 32-bit variable, and the functions
return plain "int". This avoids a few REX prefixes, i.e.
minimally reduces code size.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/504DE550020000780009A258@nat28.tlf.novell.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/bitops.h