This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: State of m68k float emulation in lb1sf68.asm (muldf, divdf)


On Mon, 2003-11-17 at 11:16, tm_gccmail@kloo.net wrote:
> Uh, have you looked at fp-bit.c? It's glacially slow.

Have you looked at lb1sf68.asm?  The complaint was that it is slow
because it is using bit-wise loops for multiplies.  fp-bit.c doesn't, it
uses actual multiply instructions, and hence may be faster.

I agree that fp-bit.c is slower than necessary, but it is folly to
assume that it is slower than all FP emulators.  There are some that are
even slower, and lb1sf68.asm might be one.

> GMP isn't IEEE754 compatible, iirc. It's an arbitrary precision bignum
> library, and therefore unsuitable for as an fp-bit.c replacement.

You missed the point.  This discussion is about how to do the 108-128
bit multiply that muldf3 needs.  That is exactly what GMP was designed
for, and it will likely do it better than any hand written m68k code
will.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]