Re[2]: [fpc-pascal] rotating bits

2006-05-25 Thread Пётр Косаревский
> Well, if we're going in that direction anyway: > Why not include all possible assembler instructions then ? Because some of them are not designed for calculations. But ror/rol are. > Let's be serious. You must draw the line somewhere. > I think these instructions are so exotic, they are pollut

Re[2]: [fpc-pascal] rotating bits

2006-05-25 Thread Пётр Косаревский
> But the problem with ROR/ROL is that any real use over shr/shl uses a hard > to model carry flag? Ugh, I don't understand well, but the talk is about rotating bits, no low level features like CF are requested (it doesn't mean very much if you rotate by several bits). Who talked about CF? I di

Re[2]: [fpc-pascal] rotating bits

2006-05-25 Thread Пётр Косаревский
> > Tomas Hajny wrote: > > > I guess there is no problem in including it. The > > > only questions from my point of view are: > > > > > > 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)? Well, they

Re: Re[2]: [fpc-pascal] rotating bits

2006-05-24 Thread L505
There is this page which might help some http://www.merlyn.demon.co.uk/del-bits.htm ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: Re[2]: [fpc-pascal] rotating bits

2006-05-24 Thread Tomas Hajny
đŁÔŇ ëĎÓÁŇĹ×ÓËÉĘ wrote: >> On 24 mei 2006, at 10:56, đŁÔŇ ëĎÓÁŇĹ×ÓËÉĘ wrote: >> > Is there high level operator/(inline)function for rotating bits? >> No. >> > Am I supposed to implement rotating bits (like ror/rol in i386 asm) >> > by inline assembler or some ugly workarounds (shifts and or-s)? >>

Re[2]: [fpc-pascal] rotating bits

2006-05-24 Thread Пётр Косаревский
> On 24 mei 2006, at 10:56, Пётр Косаревский wrote: > > Is there high level operator/(inline)function for rotating bits? > No. > > Am I supposed to implement rotating bits (like ror/rol in i386 asm) > > by inline assembler or some ugly workarounds (shifts and or-s)? > Yes. I think there's already