Mail Archives: djgpp/1997/09/07/09:47:58
Robert Hoehne (Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE) wrote:
: Nate Eldredge wrote:
: >
: > Does anybody know why the math functions aren't implemented as inline
: > functions in the header file, but rather as regular functions? Since most of
: Because there is a gcc switch, which does this :-)
: 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?).
// E-mail: smikecin AT bigfoot DOT com
// URL: http://fly.cc.fer.hr/~sime
- Raw text -