This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: std::pow implementation
- From: dewar at gnat dot com (Robert Dewar)
- To: aoliva at redhat dot com, gdr at integrable-solutions dot net
- Cc: gcc at gcc dot gnu dot org, rguenth at tat dot physik dot uni-tuebingen dot de,s dot bosscher at student dot tudelft dot nl
- Date: Wed, 30 Jul 2003 09:40:11 -0400 (EDT)
- Subject: Re: std::pow implementation
>
> Therefore, inline the way you describe it, is useful only for
> functions that are *always* profitable to inline. Any function that
> might or might not be profitable to inline should not be declared
> inline, and the compiler would never inline it.
And of course this approach is impractical, since whether inlining helps
in a specific case is target dependent.