Commit b7c34954 by Steven Bosscher Committed by Paolo Carlini

re PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code)

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
parent 5ea43886
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> 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac: Bump AC_PREREQ to 2.59. * configure.ac: Bump AC_PREREQ to 2.59.
......
// -*- C++ -*- C math library. // -*- 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
namespace std namespace std
{ {
template<typename _Tp> template<typename _Tp>
_Tp inline _Tp
__cmath_power(_Tp __x, unsigned int __n) __cmath_power(_Tp __x, unsigned int __n)
{ {
_Tp __y = __n % 2 ? __x : 1; _Tp __y = __n % 2 ? __x : 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment