OSDN Git Service

* include/std/std_complex.h (log): Tidy.
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jun 2004 21:04:07 +0000 (21:04 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jun 2004 21:04:07 +0000 (21:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82584 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 63c176b..06c30f7 100644 (file)
@@ -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.
index 097ce3b..d05f8fa 100644 (file)
@@ -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>