Re: how to inline "ROR/ROL" asm instructions in C ?? (help wanted)

New Message Reply About this list Date view Thread view Subject view Author view

Bill Sommerfeld (sommerfeld@orchard.arlington.ma.us)
Mon, 05 Oct 1998 22:39:16 -0400


while we're in comparitive architecture mode, PA-RISC has "shift
double", (some call this a "funnel shift") which is essentially:

        r3 = (r1 << n) | (r2 >> (32-n))

with `n' either a constant or taken from a special `shift amount
register'.

If r1==r2, this gives you a rotate. It's also potentially useful in
other situations (e.g., bitblt)

                                        - Bill


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:15:19