[U-Boot] [PATCH v4 3/4]: Define ffs/fls for all architectures

Wolfgang Denk
2009-09-15T20:34:43Z

Dear Simon Kagstrom,

In message <20090824091012.0df5bbff@marrow.netinsight.se> you wrote:
> Define ffs/fls for all architectures
>
> UBIFS requires fls(), which is not defined for arm (and some other
> architectures) and this patch adds it. The implementation is taken from
> Linux and is generic. ffs() is also defined for those that miss it.
>
> Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
> ---
> ChangeLog:
> v2: Unify code style (empty line between ffs/fls)
> v3: Move the definition to generic code (Mike Frysinger)
>
> include/asm-i386/bitops.h | 1 +
> include/asm-m68k/bitops.h | 1 +
> include/asm-nios/bitops.h | 1 +
> include/asm-nios2/bitops.h | 1 +
> include/asm-ppc/bitops.h | 2 +
> include/asm-sh/bitops.h | 2 +
> include/linux/bitops.h | 45 ++++++++++++++++++++++++++++++++++++++++++++
> 7 files changed, 53 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"They that can give up essential liberty to obtain a little temporary
saftey deserve neither liberty not saftey." - Benjamin Franklin, 1759