From: Alexander van Heukelum Date: Sat, 15 Mar 2008 17:31:49 +0000 (+0100) Subject: generic: implement __fls on all 64-bit archs X-Git-Tag: v2.6.26-rc1~1037^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56a6b1eb7bfb5ace0b5cb9c149f502fbd101b8ab;p=pandora-kernel.git generic: implement __fls on all 64-bit archs Implement __fls on all 64-bit archs: alpha has an implementation of fls64. Added __fls(x) = fls64(x) - 1. ia64 has fls, but not __fls. Added __fls based on code of fls. mips and powerpc have __ilog2, which is the same as __fls. Added __fls = __ilog2. parisc, s390, sh and sparc64: Include generic __fls. x86_64 already has __fls. Signed-off-by: Alexander van Heukelum Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed