]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorJeffrey A Law <law@cygnus.com>
Wed, 8 Mar 2000 04:38:45 +0000 (04:38 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 8 Mar 2000 04:38:45 +0000 (21:38 -0700)
        1999-11-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
        * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): Don't forget
        to define tanh.

        1999-11-05  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
        * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION):  When
        building meta-expressions don't forget to take the contained
        closures.

        1999-10-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
        * std/valarray_meta.h: (_BinClos::_BinClos): Fix typo.

        1999-09-17 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
        * std/complext.cc (pow): Don't expect floating point promotion
        in presence of template argument deduction.  There is no such
        thing.
Bring bugfixes into the release branch.

From-SVN: r32401

libstdc++/ChangeLog
libstdc++/std/complext.cc
libstdc++/std/valarray_meta.h

index e987fe19523e83dc04e3362e43809dead19031c6..18e557aefe5955a697984f756340a1dc90a8b592 100644 (file)
@@ -1,9 +1,26 @@
-2000-02-06 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
+Tue Mar  7 21:37:56 2000  Jeffrey A Law  (law@cygnus.com)
+
+       1999-11-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
+       * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): Don't forget
+       to define tanh. 
+
+       1999-11-05  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
+       * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION):  When
+       building meta-expressions don't forget to take the contained
+       closures.
+
+       1999-10-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
+       * std/valarray_meta.h: (_BinClos::_BinClos): Fix typo.
 
+       1999-09-17 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
+       * std/complext.cc (pow): Don't expect floating point promotion
+       in presence of template argument deduction.  There is no such
+       thing. 
+
+2000-02-06 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
        * std/valarray_array.h (__valarray_copy): Fix typo.
 
 1999-12-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
-
        * std/bastring.h (basic_string::basic_string): Rename parameters
        to avoid shadow warnings.
        * std/bastring.cc (alloc): Likewise.
index d50bf0871f6111bb2d67b5df39ea1260686fba8d..60227f213299e6e3759ab7283153af9852d95d99 100644 (file)
@@ -236,7 +236,7 @@ pow (const complex<FLOAT>& xin, int y)
   if (y < 0)
     {
       y = -y;
-      x = 1/x;
+      x = FLOAT(1)/x;
     }
   for (;;)
     {
index f799111c7bcc1c7dc30335b067387258e5f26dd0..48fb21371f77055404af052922cff9174228d8de 100644 (file)
@@ -449,7 +449,7 @@ struct  _BinClos<_Oper,_ValArray,_Expr,typename _Dom::value_type,_Dom>
     typedef _BinBase<_Oper,valarray<_Tp>,_Dom> _Base;
     typedef typename _Base::value_type value_type;
     
-    _BinClos (const valarray<_Tp> __e1, const _Dom& __e2)
+    _BinClos (const valarray<_Tp>& __e1, const _Dom& __e2)
             : _Base (__e1, __e2) {}
 };
 
@@ -917,7 +917,7 @@ _Name(const _Expr<_Dom,typename _Dom::value_type>& __e)                 \
 {                                                                       \
     typedef typename _Dom::value_type _Tp;                              \
     typedef _UnFunClos<_Expr,_Dom> _Closure;                            \
-    return _Expr<_Closure,_Tp> (_Closure (__e, (_Tp(*)(_Tp))(&_Name))); \
+    return _Expr<_Closure,_Tp>(_Closure(__e(), (_Tp(*)(_Tp))(&_Name))); \
 }                                                                       \
                                                                         \
 template<typename _Tp>                                                  \
@@ -936,7 +936,8 @@ _Name(const valarray<_Tp>& __v)                                         \
     _DEFINE_EXPR_UNARY_FUNCTION(sin)
     _DEFINE_EXPR_UNARY_FUNCTION(asin)
     _DEFINE_EXPR_UNARY_FUNCTION(sinh)    
-    _DEFINE_EXPR_UNARY_FUNCTION(tan)    
+    _DEFINE_EXPR_UNARY_FUNCTION(tan)
+    _DEFINE_EXPR_UNARY_FUNCTION(tanh)
     _DEFINE_EXPR_UNARY_FUNCTION(atan)
     _DEFINE_EXPR_UNARY_FUNCTION(exp)    
     _DEFINE_EXPR_UNARY_FUNCTION(log)