Mail Archives: djgpp/1998/09/30/21:47:27
On 30 Sep 98 at 14:46, Bradley Walker wrote:
> When I use the libm.a that is included with djgcc, is this a software
> implementation of the the transcendental functions or is there any inlining
> to take advantage of a math coprocessor?
It uses the coprocessor, as does all floating point code
compiled with gcc. The software emulation is done by a DXE
(emu387.dxe) and IIRC some trapping of exceptions generated
when you try to do FP operations with no FPU.
libm.a contains more advanced and more accurate maths functions
than those which are already present in libc.a (which in case
you didn't know is normally linked into all your programs).
I may have misunderstood your question though; I don't know
what you mean by mentioning "transcendental". Transcendental
numbers cannot be stored using floating point.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -