aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2004-06-02 21:04:07 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2004-06-02 21:04:07 +0000
commitb53dcf3e5c67b345b6dea948cd3a9f4b31ec39a8 (patch)
tree0e548deb5c6d8d13cb204cb9f4ff673003b36b5d
parentb25a89339056f59109121ddd7f9f5b7624f287e4 (diff)
downloadgcc-b53dcf3e5c67b345b6dea948cd3a9f4b31ec39a8.zip
gcc-b53dcf3e5c67b345b6dea948cd3a9f4b31ec39a8.tar.gz
gcc-b53dcf3e5c67b345b6dea948cd3a9f4b31ec39a8.tar.bz2
* include/std/std_complex.h (log): Tidy.
From-SVN: r82584
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/std/std_complex.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 63c176b..06c30f7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * include/std/std_complex.h (log): Tidy.
+
2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu (GLIBCXX_3.4.1): Add.
diff --git a/libstdc++-v3/include/std/std_complex.h b/libstdc++-v3/include/std/std_complex.h
index 097ce3b..d05f8fa 100644
--- a/libstdc++-v3/include/std/std_complex.h
+++ b/libstdc++-v3/include/std/std_complex.h
@@ -732,11 +732,14 @@ namespace std
inline __complex__ long double
__complex_log(const __complex__ long double& __z)
- { return __builtin_clog(__z); } */
+ { return __builtin_clogl(__z); } */
+ // FIXME: Currently wer don't use built-ins for log() because of some
+ // obscure user name-space issues. So, we use the generic version
+ // which is why we don't use __z.__rep() in the call below.
template<typename _Tp>
inline complex<_Tp>
- log(const complex<_Tp>& __z) { return __complex_log(__z.__rep()); }
+ log(const complex<_Tp>& __z) { return __complex_log(__z); }
template<typename _Tp>
inline complex<_Tp>