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

Paul Brook paul@nowt.org
Mon Nov 17 20:28:00 GMT 2003


On Monday 17 November 2003 7:16 pm, tm_gccmail@kloo.net wrote:
> > If you really want something better than fp-bit.c, then I would suggest
> > looking into GMP.  You might need to do a m68k port of it.  I don't see
> > any m68k code in the longlong.h file.  This helps with the portability,
> > as you would define different longlong.h macros for different members
> > of the m68k family.
>
> GMP isn't IEEE754 compatible, iirc. It's an arbitrary precision bignum
> library, and therefore unsuitable for as an fp-bit.c replacement.

I believe it can be if you use the MPFR interfaces. I've never actually used 
these ehough, so I can't guarantee this, or say how easy it is.

If you do get GMP into the gcc tree It'll save me a job - it's needed by 
gfortran:)

Paul



More information about the Gcc mailing list