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: std::pow implementation


> Defining a function inline is not a careless action.  If inlining
> isn't profitable, the programmer will profile et remove the inline
> definition.  You don't know better than the programmer.

This is often incorrect, because often code is written to be portable, and
the decision on what is profitable to inline is target dependent. Furthermore
deciding whether something is profitable to inline on a given target requires
detailed knowledge of the target architecture, knowledge that very few 
programmers have these days.


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