Re: cntlzw

2008-06-06 Thread Matt Sealey
though so I can pin it to my wall) -- Matt Sealey <[EMAIL PROTECTED]> Genesi, Manager, Developer Relations Scott Wood wrote: Kevin Diggs wrote: Hi, x86 has bsf and bsr. PPC has cntlzw which I think is equivalent to bsr. Anyone know of a sneaky algorithm to do bsf? wordsize - 1

Re: cntlzw

2008-06-03 Thread Scott Wood
Kevin Diggs wrote: Hi, x86 has bsf and bsr. PPC has cntlzw which I think is equivalent to bsr. Anyone know of a sneaky algorithm to do bsf? wordsize - 1 - cntlzw(x & ~(x - 1)); -Scott ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org h

cntlzw

2008-06-03 Thread Kevin Diggs
Hi, x86 has bsf and bsr. PPC has cntlzw which I think is equivalent to bsr. Anyone know of a sneaky algorithm to do bsf? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev