[Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Mon Sep 29 17:36:00 GMT 2003
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-09-29 16:17 -------
Subject: Re: std::pow(T, int) implementation pessimizes code
"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
More information about the Gcc-bugs
mailing list