This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug libstdc++/11706] std::pow(T, int) implementation pessimizescode
- From: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- To: gdr at integrable-solutions dot net <gcc-bugzilla at gcc dot gnu dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 29 Sep 2003 16:29:10 +0200 (CEST)
- Subject: Re: [Bug libstdc++/11706] std::pow(T, int) implementation pessimizescode
On 29 Jul 2003, gdr at integrable-solutions dot net wrote:
> "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
>
> | Or are there reasons bigger than us that prevent such an implementation from
> | being correct?
>
> The expansion of pow() as an inline function may be quite large and
> have negative impact on the overall program. That is why it does not
> suffice to examine the assembler output nor just a single (kind) of
> application -- be it scientific.
>
> This is not meant to dismiss the report. I'll take care of it.
Any progress on this? I still think this is a show stopper. What about the
suggested replacement of the __pow_helper() with ::pow() which is now
optimized by an appropriate builtin?
Thanks,
Richard.
--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/