[parisc-linux] backport bitops.h stuff

Joel Soete jsoe0708@tiscali.be
Fri, 1 Aug 2003 19:09:37 +0200


> Actually, this patch looks decidedly non-optimal.

> See include/linux/bitops.h:generic_ffs for how it should be done on
> architectures that don't have any machine instruction help.  That's only
> four if statements and no loop.

Yes it was like this (just a lake of #include <linux/bitops.h>) into 2.4

Why was it is changed in 2.5?

> I see we already have the loop thing in 2.5, but should we consider
> simply using the generic operations there as well?

> even for __ffs, which is just a slight optimisation over ffs, using
> generic_ffs would probably be faster

If I have time next week I can test your idea.

Thanks,
    Joel


------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003.
On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr