math.h

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

math.h

835 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mhjerde on Mon Oct 25 02:38:00 MST 2010
Hi
Is there a list of what math functions are actually implemented in redlib nohost and semihost?

I can see that pow(), floor(), and ceil() works, but for example rint(), round(), trunc() does not.

Morten
0 Kudos
1 Reply

579 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Oct 25 03:00:57 MST 2010
Over time, it is the intention that more of the functionality of C99 will be encorporated in to Redlib, but as of today it is a C90 based C library, implementing the functionality documented in "The Standard C Library" by P.J. Plauger (http://www.amazon.com/Standard-C-Library-P-J-Plauger/dp/0131315099).

From a quick scan, this appears to match the Redlib math function list:
http://en.wikipedia.org/wiki/Math.h#Pre-C99_functions

Regards,
CodeRedSupport.
0 Kudos