log2, log2f

Brooks Moses brooks@codesourcery.com
Wed Mar 18 17:25:00 GMT 2009

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

More information about the Newlib mailing list