[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] Manual 0.2.6



On Fri, Aug 02, 2002 at 01:35:31AM +0200, nico wrote:
[...]
> > If we're going to implement a `monster shift' anyway, I suggest a `chunk
> > shift' instruction that operates on full-size registers (that is, there
> > will be no SIMD mode) and always shifts 64-bit quantities:
> > 
> >         cshiftl r3, r2, r1      // r1 = r2 << (64 * r3)
> >         cshiftr r3, r2, r1      // r1 = r2 >> (64 * r3)
> > 
> > This can probably be integrated with the SHL execution unit.
> 
> Why not using the SIMD flag ? And do :
> 	r1 = r2 << ([8|16|32|64]*r3)

Too complicated.

-- 
 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/