aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJan van Dijk <jan@etpmod.phys.tue.nl>2004-06-10 18:54:49 +0200
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2004-06-10 16:54:49 +0000
commit9ef313e31caf3e61eb3b1b0483249d1598bd73cf (patch)
tree32117dfe22a2c267f802a890a74bbb09f5213c1c /libstdc++-v3
parent811d7e77459bb2926e5928b2ad47caf6eaf258fc (diff)
downloadgcc-9ef313e31caf3e61eb3b1b0483249d1598bd73cf.zip
gcc-9ef313e31caf3e61eb3b1b0483249d1598bd73cf.tar.gz
gcc-9ef313e31caf3e61eb3b1b0483249d1598bd73cf.tar.bz2
std_complex.h (sin(const complex<_Tp>& __z)): Make this function return a value.
2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl> * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make this function return a value. From-SVN: r82928
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/std/std_complex.h16
2 files changed, 13 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 20d5a7d..e704fa7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
+
+ * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
+ this function return a value.
+
2004-06-09 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/15775
diff --git a/libstdc++-v3/include/std/std_complex.h b/libstdc++-v3/include/std/std_complex.h
index d05f8fa..f5a8e5c 100644
--- a/libstdc++-v3/include/std/std_complex.h
+++ b/libstdc++-v3/include/std/std_complex.h
@@ -676,11 +676,11 @@ namespace std
template<typename _Tp>
inline complex<_Tp>
__complex_cosh(const complex<_Tp>& __z)
- {
- const _Tp __x = __z.real();
- const _Tp __y = __z.imag();
- return complex<_Tp>(cosh(__x) * cos(__y), sinh(__x) * sin(__y));
- }
+ {
+ const _Tp __x = __z.real();
+ const _Tp __y = __z.imag();
+ return complex<_Tp>(cosh(__x) * cos(__y), sinh(__x) * sin(__y));
+ }
inline __complex__ float
__complex_cosh(__complex__ float __z) { return __builtin_ccoshf(__z); }
@@ -709,8 +709,8 @@ namespace std
__complex_exp(__complex__ double __z) { return __builtin_cexp(__z); }
inline __complex__ long double
- __complex_exp(const __complex__ long double& __z)
- { return __builtin_cexpl(__z); }
+ __complex_exp(const __complex__ long double& __z)
+ { return __builtin_cexpl(__z); }
template<typename _Tp>
inline complex<_Tp>
@@ -768,7 +768,7 @@ namespace std
template<typename _Tp>
inline complex<_Tp>
- sin(const complex<_Tp>& __z) { __complex_sin(__z.__rep()); }
+ sin(const complex<_Tp>& __z) { return __complex_sin(__z.__rep()); }
// 26.2.8/11 sinh(__z): Returns the hyperbolic sine of __z.
template<typename _Tp>