From: Steven Bosscher Date: Thu, 11 Mar 2004 10:42:26 +0000 (+0100) Subject: re PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7c34954fe326ceb8d94db9839cc14271741295f;p=gcc.git re PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code) 2004-03-11 Steven Bosscher PR libstdc++/11706 * include/c_std/cmath.tcc (__cmath_power): Define inline. From-SVN: r79316 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cfb2c84632f..8377536456c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-03-11 Steven Bosscher + + PR libstdc++/11706 + * include/c_std/cmath.tcc (__cmath_power): Define inline. + 2004-03-10 Kelley Cook * configure.ac: Bump AC_PREREQ to 2.59. diff --git a/libstdc++-v3/include/c_std/cmath.tcc b/libstdc++-v3/include/c_std/cmath.tcc index 0ff9ed74b31..d771467ec61 100644 --- a/libstdc++-v3/include/c_std/cmath.tcc +++ b/libstdc++-v3/include/c_std/cmath.tcc @@ -1,6 +1,6 @@ // -*- C++ -*- C math library. -// Copyright (C) 2000, 2003 Free Software Foundation, Inc. +// Copyright (C) 2000, 2003, 2004 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ namespace std { template - _Tp + inline _Tp __cmath_power(_Tp __x, unsigned int __n) { _Tp __y = __n % 2 ? __x : 1;