]> git.sur5r.net Git - u-boot/commit
Define ffs/fls for all architectures
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Mon, 24 Aug 2009 07:10:12 +0000 (09:10 +0200)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:26 +0000 (09:04 -0500)
commitc1d1bfa583ee8cb9073eba05f718b33c33c06296
tree5f0f0f2a5d7b204c5228565f87083e5e58edd469
parentf83ab09566980fef4a3b37f6128b96b2bf91412a
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>
include/asm-i386/bitops.h
include/asm-m68k/bitops.h
include/asm-nios/bitops.h
include/asm-nios2/bitops.h
include/asm-ppc/bitops.h
include/asm-sh/bitops.h
include/linux/bitops.h