From 9ef313e31caf3e61eb3b1b0483249d1598bd73cf Mon Sep 17 00:00:00 2001 From: Jan van Dijk Date: Thu, 10 Jun 2004 18:54:49 +0200 Subject: [PATCH] std_complex.h (sin(const complex<_Tp>& __z)): Make this function return a value. 2004-06-10 Jan van Dijk * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make this function return a value. From-SVN: r82928 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/std/std_complex.h | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 20d5a7d3b02..e704fa7c0bb 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-06-10 Jan van Dijk + + * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make + this function return a value. + 2004-06-09 Paolo Carlini PR libstdc++/15775 diff --git a/libstdc++-v3/include/std/std_complex.h b/libstdc++-v3/include/std/std_complex.h index d05f8fae253..f5a8e5cb6d6 100644 --- a/libstdc++-v3/include/std/std_complex.h +++ b/libstdc++-v3/include/std/std_complex.h @@ -676,11 +676,11 @@ namespace std template 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 inline complex<_Tp> @@ -768,7 +768,7 @@ namespace std template 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 -- 2.30.2