Hi,

on small microcontroller without hardware FP it usually does not make sense to
use double or long double. Most of the programs do not use any floating point 
operations,
because it needs much more code, RAM and CPU time.
That's also the reason why C99 features like complex numbers (with complex inf 
and NAN)
are usually not available for microcontroller.

Regards,

Rolf


[email protected] schrieb am 24.06.05 11:49:25:
> 
> [email protected] wrote
> 
> > > ... could you explain why did you use the names
> > > logf() and expf() instead of the standard names log() and exp()? 
> > 
> > logf, expf, powlf etc. are ANSI C functions defined as functions with
> > float argument(s).
> > The functions without the f are functions with double argument(s) and the
> > functions
> > logl, expl, powl are functions with long double argument(s).
> > See chapter 7.12 in C99.
> 
> O.k., thanks for the explanation.
> But this means, that the double funtions log(), exp() and pow() are missing.
> Is this an error or does MSP430-GCC not support them? (sin() and cos() are
> available, which should be also double functions. sinf() and cosf() do
> exist, too.)
> 
> Ralf
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users



Reply via email to