[ECOS] floating point

Jonathan Larmour jifl@eCosCentric.com
Mon Jan 27 04:32:00 GMT 2003

David N. Welton wrote:
> I am still running into problems with floating point.  It works fine
> with the non-lazy switching, but gives me very funny results with it.
> For instance, a variable that only has +=, -= and = applied to it
> sometimes turns into a NaN.
> As I'm interested in learning more about how things work, I would like
> to try and track this down or at least figure out how...  I'm not sure
> the best way of debugging problems at this level.  Any suggestions?

I remember having to debug some stuff here before. It isn't nice! 
hal/i386/arch/current/include/arch.inc is where the fun is.

> Another question - I'm I correct in assuming that the built in libm
> functions are not overridden with hardware-supported functions (fsin
> on x86, for instance)?


eCosCentric       http://www.eCosCentric.com/       <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list