This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: std::pow implementation
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: Richard dot Earnshaw at arm dot com, aoliva at redhat dot com, gcc at gcc dot gnu dot org, kgardas at objectsecurity dot com, rguenth at tat dot physik dot uni-tuebingen dot de
- Date: 30 Jul 2003 16:04:53 +0200
- Subject: Re: std::pow implementation
- Organization: Integrable Solutions
- References: <20030730135639.144F5F2DFE@nile.gnat.com>
dewar@gnat.com (Robert Dewar) writes:
[...]
| Basically in Ada, we regard pragma Inline as meaning: this function is pretty
| small and I call it quite often and I would like the calls to be efficient.
That is not too far from the intent of inline in C++.
| Feel free to optimize in a way that improves time performance even if more
| space is generated. I am guessing that it would make sense to inline calls
| (I know the standard doesn't formally define this, but you know what I mean).
Yes, the standard does not legislate, but we know how and why the
language evolved to introduce that feature.
-- Gaby