complex.cc log10 buglet...
Edward Jason Riedy
ejr@CS.Berkeley.EDU
Tue Jul 27 11:36:00 GMT 1999
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
More information about the Libstdc++
mailing list