[fpc-pascal] rotating bits

Jonas Maebe jonas.maebe at elis.ugent.be
Sun May 28 15:55:08 CEST 2006


On 28 May 2006, at 15:51, Jonas Maebe wrote:

>> But it can be done on ppc with two rlw* instructions which is also  
>> ok,
>> no?
>
> I think it needs three: to to rotate left/right, one to insert the  
> overflow at the end/start, and one to mask the overfow at the end/ 
> start.

No, two is actually indeed enough if you use two different registers.


Jonas



More information about the fpc-pascal mailing list