[trotts@MIT.EDU: bad line in /usr/include/math.h]

Chris Faylor cgf@cygnus.com
Thu Jul 20 20:55:00 GMT 2000

On Thu, Jul 20, 2000 at 11:52:43PM -0400, DJ Delorie wrote:
>> Wouldn't the 'extern inline log2()' trick work for c++?
>> >#define log2(x) (log(x) / M_LOG2_E)
>extern inline (log() / M_LOG2_E) ?

extern inline log2 (double x) {return log(x) / M_LOG2_E;}

inline is a valid C++ keyword but I don't know if 'extern inline'
is legal or if it would allow the user to override the function
with their own.

Actually, now that I think of it, it probably wouldn't.


More information about the Newlib mailing list