aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard B. Kreckel <kreckel@ginac.de>2011-10-28 09:34:52 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2011-10-28 09:34:52 +0000
commit4c16fa77142c5d2b35f12a6f26c8799eb6c9d8a9 (patch)
tree2ae0192aed34dd8755ea2883595f124e05f77ba5
parentcede2577b90bf851b4535ffdb0ea0b3cfbbfdda3 (diff)
downloadgcc-4c16fa77142c5d2b35f12a6f26c8799eb6c9d8a9.zip
gcc-4c16fa77142c5d2b35f12a6f26c8799eb6c9d8a9.tar.gz
gcc-4c16fa77142c5d2b35f12a6f26c8799eb6c9d8a9.tar.bz2
complex (__complex_acosh): Just use '< _Tp()'.
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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/std/complex2
-rw-r--r--libstdc++-v3/include/tr1/complex2
3 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index d92d363..67b2a55 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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>
diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex
index 7f1581b..3c41b48 100644
--- a/libstdc++-v3/include/std/complex
+++ b/libstdc++-v3/include/std/complex
@@ -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);
diff --git a/libstdc++-v3/include/tr1/complex b/libstdc++-v3/include/tr1/complex
index d29b13f..d831eeb 100644
--- a/libstdc++-v3/include/tr1/complex
+++ b/libstdc++-v3/include/tr1/complex
@@ -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);