[parisc-linux] backport bitops.h stuff

LaMont Jones lamont@hp.com
Mon, 4 Aug 2003 09:14:49 -0600


On Mon, Aug 04, 2003 at 12:43:10PM +0200, Joel Soete wrote:
>   int ret=0;
>   __asm__(" ldi    31,%1\n"

Make it say 32,%1...  Mistake in understanding things on my part...

> And I am confused by results:
> fastffs(0)==31
> ffs_hppa26(0)==0
> generic_ffs(0)==0
> 
> I presume that we also have to consider an exception for 0?

yes.

lamont