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

28 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
e220635fc9 Flush the standard error stream before aborting. 2008-04-11 16:31:39 +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
Eric Blake
c0fea97ccf Unconditionally include <config.h> in unit tests.
* tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
* tests/test-allocsa.c, tests/test-arcfour.c,
tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
tests/test-array_list.c, tests/test-array_oset.c,
tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
test-avltreehash_list.c, test-base64.c, test-binary-io.c,
test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
test-md5.c, test-memmem.c, test-printf-posix.c,
test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
test-strcasestr.c, test-striconv.c, test-striconveh.c,
test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
test-vasnprintf-posix2.c, test-vasnprintf.c,
test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
test-vfprintf-posix.c, test-vprintf-posix.c,
test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
test-xvasprintf.c: Likewise.
2007-05-28 16:49:41 +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
75d146361f Better ASSERT macro. 2007-04-29 09:15:13 +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
2e76da3de2 Include <stddef.h>, for ptrdiff_t. 2007-03-06 03:19:52 +00:00
Bruno Haible
55cd56d88a Test a corner case. Exclude two buggy implementations. 2007-03-05 03:20:23 +00:00
Bruno Haible
6fb8ffda3e Tests for module 'vasnprintf-posix'. 2007-03-04 23:30:21 +00:00