This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

complex.cc log10 buglet...


The _G_HAVE_CLOG10 check in complex.cc doesn't seem necessary, as
clog10 is included in the same directory as c_log.  The latter is
used in the `replacement' (incorrectly: parentheses are wrong, and
then the log(10) term needs a static_cast<FLT>()), so is there 
anything wrong with relying on the clog10 in math/?

Jason, not subscribed

Index: src/complex.cc
===================================================================
RCS file: /cvs/libstdc++/libstdc++/src/complex.cc,v
retrieving revision 1.10
diff -r1.10 complex.cc
122d121
< #ifdef _G_HAVE_CLOG10
124,127d122
< #else
<         // XXX: This is very weak !!!
<         return complex<FLT>(FCT(c_log)(__x._M_value / FCT(log)(10.0)));
< #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]