glibc and inline functions
Joseph S. Myers
jsm@polyomino.org.uk
Tue Mar 30 00:11:00 GMT 2004
On Mon, 29 Mar 2004, Scott Robert Ladd wrote:
> In the discussion last week, some people suggested that the performance
> of sin() and cos() could be improved through the application of
> -D__NO_INLINE__ (or __NO_INLINES__) to a compile. This definition would,
> I was informed, eliminate glibc's inline versions of those functions,
> allowing GCC to generate its own (and presumably faster) code.
__NO_INLINE__ is defined by -fno-inline; I don't think it's meant to be
defined directly. __NO_STRING_INLINES and __NO_MATH_INLINES are available
for users. __NO_INLINE__ ought to imply them (glibc shouldn't provide
inline functions in headers when inlining has been disabled) but may have
bugs in this regard.
--
Joseph S. Myers
jsm@polyomino.org.uk
More information about the Gcc
mailing list