]> 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)
committerWolfgang Denk <wd@denx.de>
Tue, 15 Sep 2009 20:34:32 +0000 (22:34 +0200)
commit52d61227b66d4099b39c8309ab37cb67ee09a405
tree0c5562920f48672d38baf05dd744118a4a8f2e69
parent4b15de08fe4d2c9d12a3764394731018a763216b
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