Re: [U-Boot] [PATCH 2/4]: Define ffs/fls for all architectures

2009-08-21 Thread Wolfgang Denk
Dear Simon Kagstrom, In message 20090820104212.48a03...@marrow.netinsight.se you wrote: On Thu, 20 Aug 2009 01:11:09 +0200 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 11:13 Tue 18 Aug , Simon Kagstrom wrote: Define ffs/fls for all architectures UBIFS

Re: [U-Boot] [PATCH 2/4]: Define ffs/fls for all architectures

2009-08-20 Thread Simon Kagstrom
On Thu, 20 Aug 2009 01:11:09 +0200 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 11:13 Tue 18 Aug , Simon Kagstrom 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.

Re: [U-Boot] [PATCH 2/4]: Define ffs/fls for all architectures

2009-08-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:13 Tue 18 Aug , Simon Kagstrom 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.

Re: [U-Boot] [PATCH 2/4]: Define ffs/fls for all architectures

2009-08-18 Thread Simon Kagstrom
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. v2: Unify code style (empty line between ffs/fls)