avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Documentation/Lib mismatch for inverse( ) function in


From: Björn Haase
Subject: Re: [avr-libc-dev] Documentation/Lib mismatch for inverse( ) function in math lib?
Date: Mon, 6 Jun 2005 18:39:42 +0200
User-agent: KMail/1.7.1

I agree with you that using "square" and "inverse" is not a good idea.

> So what to do?  Bracket square() and inverse() into some
>
> #ifdef _USING_AVR_LIBC_EXTENSIONS
> ...
> #endif
>
> macro?  That's usually the take operating systems vendors chose for
> their public header files.  It would require another macro though that
> needs to be published and documented.
>
> Export them as _square() and _inverse()?  That way, they are in the
> implementation name space, thus cannot collide with the application.

I don't have a strong opinion on that but when I'd have to choose, I'd 
probably take the second one.

Regards,

Björn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]