OSDN Git Service

2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Jun 2004 16:54:49 +0000 (16:54 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Jun 2004 16:54:49 +0000 (16:54 +0000)
* include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
this function return a value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82928 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/std_complex.h

index 20d5a7d..e704fa7 100644 (file)
@@ -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
index d05f8fa..f5a8e5c 100644 (file)
@@ -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>