Michael Green schrieb:
> Quick question: Is there any particular reason why the system function
> ror() (in /fpc/rtl/inc/systemh.inc) has been divided up into rorbyte,
> rordword and rorqword (and respectively for rol() ) instead of being
> overloaded?

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

Reply via email to