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