1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
Bruno Haible
f797ae7485 Fix rounding when a precision is given. 2008-04-19 17:26:36 +02:00
Bruno Haible
0a56509612 Use macros NaNf, NaNd, NaNl instead of NAN. 2008-04-02 03:06:02 +02:00
Eric Blake
06945b7c07 Guarantee a definition of NAN.
* lib/math.in.h (NAN): Define if missing.
* tests/test-math.c (main): Test it.
* doc/posix-headers/math.texi (math.h): Document this.
* lib/isnan.c (rpl_isnand): Use it.
* tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
* tests/test-floorf1.c (NaN): Likewise.
* tests/test-frexp.c (NaN): Likewise.
* tests/test-isnand.c (NaN): Likewise.
* tests/test-isnanf.c (NaN): Likewise.
* tests/test-round1.c (NaN): Likewise.
* tests/test-roundf1.c (NaN): Likewise.
* tests/test-snprintf-posix.h (NaN): Likewise.
* tests/test-sprintf-posix.h (NaN): Likewise.
* tests/test-trunc1.c (NaN): Likewise.
* tests/test-truncf1.c (NaN): Likewise.
* tests/test-vasnprintf-posix.c (NaN): Likewise.
* tests/test-vasprintf-posix.c (NaN): Likewise.
* modules/isnand-nolibm (Depends-on): Add math.
* modules/isnanf-nolibm (Depends-on): Likewise.
* modules/isnanl (Depends-on): Likewise.
* modules/isnanl-nolibm (Depends-on): Likewise.
* modules/snprintf-posix-tests (Depends-on): Likewise.
* modules/sprintf-posix-tests (Depends-on): Likewise.
* modules/vsnprintf-posix-tests (Depends-on): Likewise.
* modules/vsprintf-posix-tests (Depends-on): Likewise.
* modules/vasnprintf-posix-tests (Depends-on): Likewise.
* modules/vasprintf-posix-tests (Depends-on): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-31 21:06:57 -06:00
Bruno Haible
6cad9c9121 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20. 2008-02-07 02:08:13 +01:00
Bruno Haible
fe5143cd20 Add tests for large precisions. 2007-11-04 19:43:13 +01:00
Bruno Haible
57fdfd3f8e Change copyright notice from GPLv2+ to GPLv3+. 2007-10-07 19:14:58 +02:00
Bruno Haible
ee6d9baacd Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64, ia64. 2007-06-06 02:20:57 +00:00
Bruno Haible
dcbb9e701f Allow for a longer printed representation of NaN. 2007-05-24 10:10:51 +00:00
Bruno Haible
17ccaa9d86 Stricter check for printf result for NaN arguments. 2007-05-22 01:07:46 +00:00
Bruno Haible
9064585003 Avoid test failures on some versions of HP-UX 11. 2007-05-20 08:12:26 +00:00
Bruno Haible
e10764b1e1 Avoid test failures on platforms where -0.0 and 0.0 are identical. 2007-05-19 22:57:58 +00:00
Bruno Haible
b65d227a82 Avoid test failures on IRIX 6.5. 2007-05-19 22:22:21 +00:00
Bruno Haible
cf85386144 Accomodate for implementations that produce 3 exponent digits in %e and %g. 2007-05-19 10:22:11 +00:00
Bruno Haible
48e570fe66 Add tests for %e and %g directives. 2007-05-18 23:37:50 +00:00
Bruno Haible
1312379265 More tests of printf %f. 2007-05-18 22:10:17 +00:00
Bruno Haible
e9bb23084a Work around an incorrect implementation of the 0 flag on most platforms. 2007-05-06 23:02:10 +00:00
Bruno Haible
2bb894abc6 Work around lack of support of grouping flag. 2007-05-06 15:29:04 +00:00
Bruno Haible
d6f2795056 Add tests for %f and %F directives. 2007-04-13 16:56:08 +00:00
Bruno Haible
f1d7a8f448 Guard against FreeBSD 6.1 bug. 2007-04-11 00:24:01 +00:00
Bruno Haible
9f88c0b0e0 Assume 'long double' exists. 2007-04-06 14:36:56 +00:00
Bruno Haible
473a9b7de5 FreeBSD 6.1 produces different printf output than glibc. 2007-04-05 00:27:44 +00:00
Bruno Haible
6136fd62a3 Work around a DEC C compiler bug. 2007-03-25 19:56:22 +00:00
Bruno Haible
ffd3c1bee8 Tests for module 'vsprintf-posix'. 2007-03-07 03:28:35 +00:00