This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: RFA: Add definition of M_LOG2_E when compiling in ISO C99 mode
- From: Nick Clifton <nickc at redhat dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: newlib at sourceware dot org
- Date: Fri, 07 Sep 2007 11:34:13 +0100
- Subject: Re: RFA: Add definition of M_LOG2_E when compiling in ISO C99 mode
- References: <m3hcm810wy.fsf@redhat.com> <46E05B89.8040306@redhat.com>
Hi Jeff,
Thanks Nick for pointing this out. I have made a patch, slightly
different than yours, that fixes the problem. Basically, I just defined
a macro _M_LOG2E that is defined regardless. The macro is used by log2
and log2f and M_LOG2E uses it as well.
Ok, but can you enlighten me a little bit please ? What is the difference
between M_LOG2E and M_LOG2_E ? They are both defined in math.h, but have
different values and the log2() and log2f macros which used to use the value of
M_LOG2_E now use M_LOG2E.
Cheers
Nick