bug-gmp
[Top][All Lists]
Advanced

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

Re: Small improvement in m68k\lshift.S


From: Kevin Ryde
Subject: Re: Small improvement in m68k\lshift.S
Date: 02 Jun 2001 07:57:50 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

"Jean-Charles Meyrignac" <address@hidden> writes:
> 
> The shifting can be replaced by a ROR.L.
> We just have to initialize a mask bits (for example in D4):

That's a good idea.

> (I'll write using my standard notation for 68K assembly)

We're switching to .asm files for the next release.  m4 will clean up
the syntax a bit.

> It takes one more instruction, compared to your method, but it is also
> faster, since shiftings take 6+2*n cycles, instead of 4+4 cycles in my case.

Which 68k's do you mean?  Plain 68000?

> I'm not sure the implementation is correct, but I'm sure this method is
> faster !

Complete, fast, well tested code for any processor you use regularly
or are keen on would be welcome.  Even if what you code is only an
improvement for some chips we can set up the configure to choose it
when appropriate.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]