From: Alexander van Heukelum Date: Sat, 15 Mar 2008 12:04:42 +0000 (+0100) Subject: x86: merge the simple bitops and move them to bitops.h X-Git-Tag: v2.6.26-rc1~1037^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12d9c8420b9daa1da3d9e090640fb24bcd0deba2;p=pandora-kernel.git x86: merge the simple bitops and move them to bitops.h Some of those can be written in such a way that the same inline assembly can be used to generate both 32 bit and 64 bit code. For ffs and fls, x86_64 unconditionally used the cmov instruction and i386 unconditionally used a conditional branch over a mov instruction. In the current patch I chose to select the version based on the availability of the cmov instruction instead. A small detail here is that x86_64 did not previously set CONFIG_X86_CMOV=y. Improved comments for ffs, ffz, fls and variations. Signed-off-by: Alexander van Heukelum Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed