This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2003 13:19:17 -0000
- Subject: [Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code
- References: <20030729120327.11706.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11706
------- Additional Comments From gdr at integrable-solutions dot net 2003-07-29 13:19 -------
Subject: Re: std::pow(T, int) implementation pessimizes code
"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.
-- Gaby