This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
complex.cc log10 buglet...
- To: libstdc++@sourceware.cygnus.com
- Subject: complex.cc log10 buglet...
- From: Edward Jason Riedy <ejr@CS.Berkeley.EDU>
- Date: Tue, 27 Jul 1999 11:36:16 -0700
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