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: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>, Steven Bosscher <s dot bosscher at student dot tudelft dot nl>, <gcc at gcc dot gnu dot org>
- Date: 29 Jul 2003 15:14:32 +0200
- Subject: Re: std::pow implementation
- Organization: Integrable Solutions
- References: <99DC6D64-C1C4-11D7-AC2E-000393A6D2F2@physics.uc.edu>
Andrew Pinski <pinskia@physics.uc.edu> writes:
| > Why isnt this done for std::pow? Any particular reason?
|
| I just think this is just a bug in GCC for the builtins matching but I
| do not know the exact reason.
The "C" versison is declared
double pow(double, double)
and C does not have pow that is declared to take an int as exponent.
That version is C++ specific.
-- Gaby