summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_std/cmath
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-27 09:27:05 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-27 09:27:05 +0000
commit86e067d23c26d4648ad1ed517e5823ea6a4b9bfd (patch)
treee91a88e04ef45c0add337e06a9114ba5e687d471 /libstdc++-v3/include/c_std/cmath
parent27f9384b06cee518556f982e305b268178116530 (diff)
downloadppe42-gcc-86e067d23c26d4648ad1ed517e5823ea6a4b9bfd.tar.gz
ppe42-gcc-86e067d23c26d4648ad1ed517e5823ea6a4b9bfd.zip
2010-09-27 Paolo Carlini <paolo.carlini@oracle.com>
* include/c_std/cmath (__pow_helper): Remove. (__cmath_power): Remove declaration. * include/c_global/cmath: Likewise. * include/std/complex (__complex_pow_unsigned): Add. (pow(const complex<_Tp>&, int)): Use the latter. * include/c_std/cmath.tcc: Remove file. * include/c_global/cmath.tcc: Likewise. * acinclude.m4: Adjust. * include/Makefile.am: Likewise. * configure: Regenerate. * include/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std/cmath')
-rw-r--r--libstdc++-v3/include/c_std/cmath17
1 files changed, 0 insertions, 17 deletions
diff --git a/libstdc++-v3/include/c_std/cmath b/libstdc++-v3/include/c_std/cmath
index e97089664d9..fcdfa15b95c 100644
--- a/libstdc++-v3/include/c_std/cmath
+++ b/libstdc++-v3/include/c_std/cmath
@@ -77,10 +77,6 @@
_GLIBCXX_BEGIN_NAMESPACE(std)
- // Forward declaration of a helper function. This really should be
- // an `exported' forward declaration.
- template<typename _Tp> _Tp __cmath_power(_Tp, unsigned int);
-
inline double
abs(double __x)
{ return __builtin_fabs(__x); }
@@ -344,15 +340,6 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
modf(long double __x, long double* __iptr)
{ return __builtin_modfl(__x, __iptr); }
- template<typename _Tp>
- inline _Tp
- __pow_helper(_Tp __x, int __n)
- {
- return __n < 0
- ? _Tp(1)/__cmath_power(__x, -__n)
- : __cmath_power(__x, __n);
- }
-
using ::pow;
inline float
@@ -590,8 +577,4 @@ _GLIBCXX_END_NAMESPACE
#endif /* _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC */
#endif
-#ifndef _GLIBCXX_EXPORT_TEMPLATE
-# include <bits/cmath.tcc>
-#endif
-
#endif
OpenPOWER on IntegriCloud