Also sprach Abramo Bagnara: } } Isn't this more efficient? } n = (x>>32) | (x<<32); } n = ((n & 0x0000ffff0000ffffLL)<<16) | (n & 0xffff0000ffff0000LL)>>16; } n = ((n & 0x00ff00ff00ff00ffLL)<<8) | (n & 0xff00ff00ff00ff00LL)>>8; } } 6 shift } 4 and } 3 or } Plus 3 assigns...but they may get optimized out. :) } instead of } } 8 shift } 8 and } 7 or } -- || Bill Wendling [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Jeff Garzik
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code David Relson
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C co... Raja R Harinath
- Re: Patch to remove undefined C code Richard Henderson
- Re: Patch to remove undefined C code Abramo Bagnara
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C code Helge Hafting
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C co... Horst von Brand
- Re: Patch to remove undefined C code Mark Montague
- Re: Patch to remove undefined C co... Bill Wendling
- Re: Patch to remove undefined C code Horst von Brand