Commit graph

9 commits

Author SHA1 Message Date
ensc
6153cd4d78 updated 2009-07-25 14:52:48 +00:00
ensc
6309c04f31 updated 2009-03-01 12:42:34 +00:00
ensc
2164f44e49 rediffed patches 2008-10-18 17:04:19 +00:00
ensc
1c0742353d use patches from git repository; rediffed against 20080517 2008-05-18 10:12:53 +00:00
ensc
881b9971c9 - do not test for signess of isinf(3); C99 guarantees values of 0 and not 0
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
2008-04-13 22:52:24 +00:00
ensc
005894e400 disabled -inf testcases for now 2008-04-13 21:54:21 +00:00
ensc
538991a0f9 use a better definition for INFINITY whitespace cleanup 2008-04-13 21:39:16 +00:00
ensc
c8fe5dc928 added a missing '#include <math.h>' 2008-04-13 20:37:13 +00:00
ensc
ddfc4b59ef This patch adds support for uppercase 'F' and 'G' printf format specifiers.
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().
2008-04-13 13:43:05 +00:00