www.digitalmars.com         C & C++   DMDScript  

D.gnu - FMODL

reply resistor mac.com writes:
As we've run into multiple times, some LIBC implementations (specifically those
derived from BSD) seem to lack the fmodl function, which causes problems for the
DMD floating point ops.  I was wondering, since GDC is a GPL application,
couldn't we just copy the fmodl function from GLIBC, surround it in #ifdef's so
it's not compiled on systems with built-in fmodl's, and run with it?

Owen
Mar 22 2004
parent resistor mac.com writes:
Here's a platform independent fmodl implementation from GLIBC. It might behoove
us to include it within the compiler, so we could match DMD's precision but
could still run on platforms lacking fmodl.

http://resistor.dyndns.org/e_fmodl.c

Owen

In article <c3n7ch$aei$1 digitaldaemon.com>, resistor mac.com says...
As we've run into multiple times, some LIBC implementations (specifically those
derived from BSD) seem to lack the fmodl function, which causes problems for the
DMD floating point ops.  I was wondering, since GDC is a GPL application,
couldn't we just copy the fmodl function from GLIBC, surround it in #ifdef's so
it's not compiled on systems with built-in fmodl's, and run with it?

Owen
Mar 22 2004