In <URL:news:local.mersenne> on Wed 16 Sep, Bojan Antonovic wrote:
> > The PII is able to shift two numbers by n positions in one step. The PII is
> > a Post-RISC processor, ie it is able to execute 2 or 3 instructions per
> > cycle and each basic instruction takes 1 cycle. The CISC and RISC
> > architectures are both obsolete.
>
> I meant with step 1 cycle (for calculation only).
The ARM is like this. The ARM is a 3 operand RISC and you may shift one of
the operands left/right/rotate by any amount with with no extra execution
time using the barrel shifter. This is one of the reasons assembly
programmers like the ARM - you can be extrememly clever if you like,
especially given the fact that you can make all instructions conditional.
--
Nick Craig-Wood
[EMAIL PROTECTED]
http://www.axis.demon.co.uk/