and does not differ between positive and negative inf. 'isinf(3)' is a
builtin in gcc 4.3 and previous check won't work anymore. Instead of,
test whether value is lesser or greater than zero.
- renabled the INF testsuite
It fixes handling of -INF values in __dtostr() too; previously, there
was
| unsigned int i; | if ((i=isinf(d))) return
copystring(buf,maxlen,i>0?"inf":"-inf"); ~~~ which evaluated to true
everytime. The copystring() function worked for 3-letter words only but
not for '-inf'.
The last argument of __dtostr() was changed from a boolean flag to a
bitmask. Bit 0 encodes 'g' or 'f', and bit 1 lower-/uppercase. There
should be probably added some macros for them; for now, these values
are used directly.
Please note that this might affect other applications (liblowfat?) too
which are using __dtostr().