On Wed, 8 Aug 2001, Ioi Lam wrote:
> Hi,
> 
> I am in a situation where using direct asm code is not feasible. I have
> a macro like this:
> 
>     #define ROTATE(a,n) (((a)<<(n))|(((a)&0xffffffff)>>(32-(n))))
> 
> Which CodeWarrior apparently doesn't compile into thr ROL/ROR op code.
> Is there a compiler directive or special macro that can tell CodeWarrior
> to do that? My ROTATE macro is buried inside a lot of C code and it's
> hard to rewrite all of it to asm code.

  why is it not possible to use asm() inline? you could always
  check the CPU your running on, and call your macro or use
  asm() directly depending on your device. :)

// az
[EMAIL PROTECTED]
http://www.ardiri.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to