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

Steven Cooper (scoop@insight.cas.mcmaster.ca)
Sat, 3 Oct 1998 19:34:32 -0400 (EDT)


> Many useful crypto algorithms include "rotate-left" and/or "rotate-right"
> steps, and most modern CPUs provide single instructions that accomplish
> these operations. However, the C language does include such an operation.
                                             ^^^^ (DOES NOT)
                        (but I'm sure you knew that's what I meant --scoop)
>
> Can someone tell me how best to write a C function (that can be "inlined")
> that invokes the appropriate assembly language instruction??
>
> The platform I am working on is Sun/64-bit/Ultra/Unix/Solaris 2.6
>
> In particular, how do you invoke an assembley language instruction
> and cause it to operate on the appropriate registers that correspond
> to specific local variables in your C program???
>
> -- scoop@insight.cas.mcmaster.ca


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