[fpc-pascal] rotating bits
florian at freepascal.org
Fri May 26 17:40:26 CEST 2006
Bisma Jayadi wrote:
>> That's the point why I want to include compiler support: rol/ror is very
>> important for several cryptographic algorithms.
> Agree! Since these are very important and relatively commonly used, I
> think it'd be better if they're implemented as new operators ("ror" and
> "rol") rather than as functions. Say we'll able to code like this:
> a := b ror c;
> x := y rol z;
> Just what we have now with "shr" and "shl". I believe it won't break any
> compatibility with Delphi code, even we have new "feature" of FPC. :)
> What do you think?
Adding new operators is much more work and error prone than simply
adding new internal functions.
More information about the fpc-pascal