[fpc-pascal] rotating bits

Marco van de Voort marcov at stack.nl
Thu May 25 11:06:42 CEST 2006


> > 
> > 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?



More information about the fpc-pascal mailing list