Makes perfect sense, thanks for the quick answer :-) Florian Klaempfl wrote:
Ror/rol are very sensitive against data type changes so this ensures you get always the desired result. While x shr 1 has the same result if the value fits in x, ror(x,1) has different results if x is a byte, word or dword even if it's value is e.g. 1.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal