[fpc-pascal] rotating bits

Bisma Jayadi bisma at brawijaya.ac.id
Fri May 26 16:36:49 CEST 2006

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


has Bee.ography at

More information about the fpc-pascal mailing list