* include/std/std_complex.h (log): Tidy.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Wed, 2 Jun 2004 21:04:07 +0000 (21:04 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Wed, 2 Jun 2004 21:04:07 +0000 (21:04 +0000)
From-SVN: r82584

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

index 63c176b1c45ca5ae4707628b7d57815e6fc30dec..06c30f7a99a5af89cb9d234c3a0e1885385d468c 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 097ce3b7f9f48da0d71841f4d1f58786276ede5c..d05f8fae25334b8cda1a63e38f0891b98887fc78 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>