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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal