commit | 56a6b1eb7bfb5ace0b5cb9c149f502fbd101b8ab | [log] [tgz] |
---|---|---|
author | Alexander van Heukelum <heukelum@mailshack.com> | Sat Mar 15 18:31:49 2008 +0100 |
committer | Ingo Molnar <mingo@elte.hu> | Sat Apr 26 19:21:16 2008 +0200 |
tree | 46d3781050938b0649fc89cd8e7f612cacb66984 | |
parent | 7d9dff22e8ad06ad330968c9e3d3a2fb55a5f9c3 [diff] |
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 <heukelum@fastmail.fm> Signed-off-by: Ingo Molnar <mingo@elte.hu>