This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: log2, log2f
Corinna Vinschen wrote, at 3/18/2009 8:40 AM:
> On Mar 18 11:28, Christopher Faylor wrote:
>> I discussed this with Yaakov on irc but how would you do this exactly? Where
>> would you define the function if log2 is already defined as a macro?
>
> First declare the function, then define the macro in the same header.
> In the source, undef the function name. This is also done for stdio
> functions like getchar, getwchar, for instance.
Do the tests check both the macro and the function, or just the macro?
- Brooks