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: Michael Matz <matz at suse dot de>
- Cc: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>, Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>, <gcc at gcc dot gnu dot org>
- Date: 29 Jul 2003 17:11:38 +0200
- Subject: Re: std::pow implementation
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0307291648140.17944-100000@wotan.suse.de>
Michael Matz <matz@suse.de> writes:
| > It is nonsense only after you have modified what I said.
| >
| > A simple function like 'std::string::end() const' should be cost-free.
|
| You are speaking about a special case (one small function) to support your
| suggestion (makeing it happen for all functions).
I'm taking it as examplar of one of the various kinds of unfortunate
consequences that put people to believe that a public data member is
faster than private. Because, somehow it was decided that the compiler
knows better. The root is the same.
-- Gaby