This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2003 18:15:25 +0200
- Subject: Re: [Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code
- Organization: Integrable Solutions
- References: <20030729120327.11706.rguenth@tat.physik.uni-tuebingen.de><20030929152930.5016.qmail@sources.redhat.com>
"rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| It is - see line 556 in <cmath> which unconditionally uses ::pow. The
It is a bug, feel free to submit a due PR :-)
| problem are just the integer overloads of pow, as if using the regular
| float ones we optimize according to the gcc builtins added by Roger.
|
| So we can f.i. just drop the integer overloads of std::pow.
No, we should not.
-- Gaby