Mail Archives: djgpp/1997/09/07/20:14:03
On 7 Sep 1997, S. Mikecin wrote:
..
> : Use '-ffast-math' to inline the math functions.
>
> Yes, you're right. But it seems to work only for a few functions (sqrt, sin,
> cos, fabs). Compared to Watcom C 10.5a output which inlines almost all
> math functions (sqrt, sin, cos, fabs, tan, atan, sinh, cosh, log, exp,...) it
> is not as good as it should be (maybe in gcc 2.8.0?).
If I remember the GCC man page directly, there's a further caveat to be
aware of when using -ffast-math. That is, when this flag is used, GCC does
not guarantee that math error exceptions (matherr() et al) will be
completely ANSI compliant.
That said, I use -ffast-math all the time. :)
-------------------------------------------------------------------
Orlando Alcantara Andico
WWW: http://www2.mozcom.com/~orly/ Email: orly AT mozcom DOT com
ICBM: 14 30 00 N 120 59 00 E POTS: (+632) 932-2385
- Raw text -