Guarantee a definition of NAN.
authorEric Blake <ebb9@byu.net>
Tue, 1 Apr 2008 02:56:25 +0000 (20:56 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 1 Apr 2008 03:06:57 +0000 (21:06 -0600)
commit06945b7c073c0872ec2049c0e0b94f789bf8d77e
tree6f724a69d7601b1df626fba02e974a3455c68abd
parent4dd6fc750dfb7f21b2b764737c0656694281ed19
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>
28 files changed:
ChangeLog
doc/posix-headers/math.texi
lib/isnan.c
lib/math.in.h
modules/isnand-nolibm
modules/isnanf-nolibm
modules/isnanl
modules/isnanl-nolibm
modules/snprintf-posix-tests
modules/sprintf-posix-tests
modules/vasnprintf-posix-tests
modules/vasprintf-posix-tests
modules/vsnprintf-posix-tests
modules/vsprintf-posix-tests
tests/test-ceilf1.c
tests/test-floorf1.c
tests/test-frexp.c
tests/test-isnand.c
tests/test-isnanf.c
tests/test-math.c
tests/test-round1.c
tests/test-roundf1.c
tests/test-snprintf-posix.h
tests/test-sprintf-posix.h
tests/test-trunc1.c
tests/test-truncf1.c
tests/test-vasnprintf-posix.c
tests/test-vasprintf-posix.c