diff options
| author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-08 05:57:48 +0000 |
|---|---|---|
| committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-08 05:57:48 +0000 |
| commit | 3886419f4ff5daf16d055b5da0d652469a7a5ddc (patch) | |
| tree | c2efe55185f17757b1916b16445e9da6a1a2c288 /libstdc++-v3/include/bits/std_complex.h | |
| parent | 7041c23396888e348e74817570f7ab05285c4bcd (diff) | |
| download | ppe42-gcc-3886419f4ff5daf16d055b5da0d652469a7a5ddc.tar.gz ppe42-gcc-3886419f4ff5daf16d055b5da0d652469a7a5ddc.zip | |
* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove ccosl,
cexpl, clog10l, csinhl, ctanhl, ctanl.
(EXTRA_DIST): Remove ccos, ccosf, csin, csinf, ccosh, ccoshf,
csing, csinhf, clog10, clog10f, ctan, ctanf, ctanh, ctanhf.
* libmath/Makefile.in: Regenarate.
* libmath/ccos.c: Remove.
* libmath/ccosf.c: Likewise.
* libmath/ccosl.c: Likewise.
* libmath/csin.c: Likewise.
* libmath/csinf.c: Likewise.
* libmath/csinl.c: Likewise.
* libmath/ctan.c: Likewise.
* libmath/ctanf.c: Likewise.
* libmath/ctanl.c: Likewise.
* libmath/ccosh.c: Likewise.
* libmath/ccoshf.c: Likewise.
* libmath/ccoshl.c: Likewise.
* libmath/csinh.c: Likewise.
* libmath/csinhf.c: Likewise.
* libmath/csinhl.c: Likewise.
* libmath/ctanh.c: Likewise.
* libmath/ctanhf.c: Likewise.
* libmath/ctanhl.c: Likewise.
* libmath/cexp.c: Likewise.
* libmath/cexpf.c: Likewise.
* libmath/cexpl.c: Likewise.
* libmath/clog10.c: Likewise.
* libmath/clog10f.c: Likewise.
* libmath/clog10l.c: Likewise.
* libmath/complex-stub.h: Remove forward declaration of functions
mentioned above.
* include/bits/std_complex.h(tan, tanh): Define primary templates.
(complex<>): Remove friend declarations for tan<> and tanh<>.
* src/complex.cc(tan, tanh): Remove specializations.
* acinclude.m4: Remove check for ccos, ccosf, ccosl, ccosh,
ccoshf, ccoshl, csin, csinf, csinl, csinh, csinhf, csinhl, cexp,
cexpf, cexpl, ctan, ctanf, ctanl, ctanh, ctanhf, ctanhl.
* aclocal.m4: Regenarate.
* configure: Regenarate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38128 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/std_complex.h')
| -rw-r--r-- | libstdc++-v3/include/bits/std_complex.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h index 849e7eb413c..10f0661a3b4 100644 --- a/libstdc++-v3/include/bits/std_complex.h +++ b/libstdc++-v3/include/bits/std_complex.h @@ -452,6 +452,20 @@ namespace std template<typename _Tp> inline complex<_Tp> + tan(const complex<_Tp>& __z) + { + return sin(__z) / cos(__z); + } + + template<typename _Tp> + inline complex<_Tp> + tanh(const complex<_Tp>& __z) + { + return sinh(__z) / cosh(__z); + } + + template<typename _Tp> + inline complex<_Tp> pow(const complex<_Tp>& __z, int __n) { return __pow_helper(__z, __n); @@ -525,8 +539,6 @@ namespace std friend class complex<long double>; friend complex<float> sqrt<>(const complex<float>&); - friend complex<float> tan<>(const complex<float>&); - friend complex<float> tanh<>(const complex<float>&); }; inline float @@ -675,8 +687,6 @@ namespace std friend class complex<long double>; friend complex<double> sqrt<>(const complex<double>&); - friend complex<double> tan<>(const complex<double>&); - friend complex<double> tanh<>(const complex<double>&); }; inline double @@ -825,8 +835,6 @@ namespace std friend class complex<double>; friend complex<long double> sqrt<>(const complex<long double>&); - friend complex<long double> tan<>(const complex<long double>&); - friend complex<long double> tanh<>(const complex<long double>&); }; inline |

