This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc and inline functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]