printf always prints "nan" for double variables on MIPS

Erik Andersen andersen at codepoet.org
Sun Feb 25 23:30:07 UTC 2007


On Sun Feb 25, 2007 at 03:05:27PM -0600, Kevin Nicoll wrote:
> I've been using the soft-float toolchain as a workaround for some time
> now, and will continue to do so if necessary.  I just want to be
> certain that this is the correct solution, and if this is a bug, that
> anyone it might affect will know about it.
> 
> Is it your opinion that this is an FPU emulator issue and not a uClibc
> issue, then?

Yes.  The mips kernel fpu emulator is 1) very slow and 2) buggy.
If you do not in fact have a hardware FPU, then using soft-float
will always be 1) much faster, 2) the conceptually correct thing
to do and 3) will ensure that you always get the right answers.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list