re PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code)
authorSteven Bosscher <s.bosscher@student.tudelft.nl>
Thu, 11 Mar 2004 10:42:26 +0000 (11:42 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 11 Mar 2004 10:42:26 +0000 (10:42 +0000)
2004-03-11  Steven Bosscher  <s.bosscher@student.tudelft.nl>

PR libstdc++/11706
* include/c_std/cmath.tcc (__cmath_power): Define inline.

From-SVN: r79316

libstdc++-v3/ChangeLog
libstdc++-v3/include/c_std/cmath.tcc

index cfb2c84632f417acf452be0949e6214047669cf2..8377536456c77c6ec313c161b8798f4f26ae21a1 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-11  Steven Bosscher  <s.bosscher@student.tudelft.nl>
+
+       PR libstdc++/11706
+       * include/c_std/cmath.tcc (__cmath_power): Define inline.
+
 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
 
        * configure.ac: Bump AC_PREREQ to 2.59.
index 0ff9ed74b316cc47583f26ad6ef405f1638a983c..d771467ec61b7a8b2caf753fac93c72b2a2f21b6 100644 (file)
@@ -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<typename _Tp>
-    _Tp
+    inline _Tp
     __cmath_power(_Tp __x, unsigned int __n)
     {
       _Tp __y = __n % 2 ? __x : 1;