Mail Archives: djgpp/1998/07/25/14:30:25
> I have some Visual C C++ sources with _lrotl function (cyclic
> rotate left). Seem it is MS extension to standart C library. Which
> replacement can i use with GCC 2.8.1 ?
>
> Vladimir
int _lrotl( int v ) {
__asm__ __volatile__ (
" movw %0, %%eax \n"
" rol $1, %%eax \n"
" jo IsDone \n"
" or $1, %%eax \n"
"IsDone: \n"
: : "gl" (v)
);
};
I didn't check that out, so you have to debug it (especially weather the
or operation for the
left out right in by carry flag is working)
Uwe
- Raw text -