]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
complex (__complex_acosh): Just use '< _Tp()'.
authorRichard B. Kreckel <kreckel@ginac.de>
Fri, 28 Oct 2011 09:34:52 +0000 (09:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 28 Oct 2011 09:34:52 +0000 (09:34 +0000)
2011-10-28  Richard B. Kreckel  <kreckel@ginac.de>

* include/std/complex (__complex_acosh): Just use '< _Tp()'.
* include/tr1/complex (__complex_acosh): Likewise.

From-SVN: r180607

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/complex
libstdc++-v3/include/tr1/complex

index d92d36312dfbaa124fefbc5f8931e5045045511a..67b2a55a588149e6fec970f4429be413a96342f4 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-28  Richard B. Kreckel  <kreckel@ginac.de>
+
+       * include/std/complex (__complex_acosh): Just use '< _Tp()'.
+       * include/tr1/complex (__complex_acosh): Likewise.
+
 2011-10-27  Richard B. Kreckel  <kreckel@ginac.de>
            Paolo Carlini  <paolo.carlini@oracle.com>
 
index 7f1581bbcb4a7a0b611c150c36adb30b59a97577..3c41b483cd22a4963932210a09edfb818616bd11 100644 (file)
@@ -1690,7 +1690,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
                            * (__z.real() + __z.imag()) - _Tp(1.0),
                            _Tp(2.0) * __z.real() * __z.imag());
       __t = std::sqrt(__t);
-      if (__z.real() < _Tp(-0.0))
+      if (__z.real() < _Tp())
        __t = -__t;
 
       return std::log(__t + __z);
index d29b13fe8b8bab85eaa38bda355a0ef0c5674aec..d831eeb014626d9c595e753938f986dfc4f4105c 100644 (file)
@@ -189,7 +189,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
                            * (__z.real() + __z.imag()) - _Tp(1.0),
                            _Tp(2.0) * __z.real() * __z.imag());
       __t = std::sqrt(__t);
-      if (__z.real() < _Tp(-0.0))
+      if (__z.real() < _Tp())
        __t = -__t;
 
       return std::log(__t + __z);