[fpc-pascal] rotating bits

Florian Klaempfl florian at freepascal.org
Thu May 25 11:13:34 CEST 2006

Marco van de Voort wrote:
>>> 1) Are they useful in general, so that it would 
>>> make sense to include them either in FPC itself 
>>> (as opposed to some standalone unit)?
>> - they must be available for all cpu platforms, so we need at least a
>> generic implementation
>> - for an efficient implementation, this needs a compiler patch so the
>> compiler can really efficiently inline
> While I do think having inlinable assembler would be a nice thing to
> have, I think it'd be a lot of work (one would have to assign params and
> results to registers as well as used regs).
> But the problem with ROR/ROL is that any real use over shr/shl uses a hard
> to model carry flag?

What has rol/ror to do with the carry flag on pascal side? It means only
rotate a variable.

More information about the fpc-pascal mailing list