[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES sources for FreeMiNT 1.16.3



Am 09.12.2009, 18:08 Uhr, schrieb Vincent Rivière <vincent.riviere@freesbee.fr>:

Andreas Schwab wrote:
unsigned int rotate (unsigned int a, int n)
{
  return (a << n) | (a >> (sizeof (a) * 8 - n));
}

Correct !

$ m68k-atari-mint-gcc -S a.c -o - -O2 -fomit-frame-pointer
#NO_APP
         .text
         .even
         .globl  _rotate
_rotate:
         move.l 4(%sp),%d0
         move.l 8(%sp),%d1
         rol.l %d1,%d0
         rts

Wow! This is surprising, what does AHCC do on this? I won't post the pure-c code here ...

-Helmut