summaryrefslogtreecommitdiff
path: root/lib/isnan.c
Commit message (Collapse)AuthorAgeFilesLines
* Use macros NaNf, NaNd, NaNl instead of NAN.Bruno Haible2008-04-021-2/+2
|
* Guarantee a definition of NAN.Eric Blake2008-03-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix bug introduced on 2008-01-26.Bruno Haible2008-02-071-2/+2
|
* Fix bug with -0.0L in previous patch.Eric Blake2007-12-111-1/+3
| | | | | | | | | * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits. * tests/test-isnan.c (main): Also test on zeroes. * tests/test-isnanf.c (main): Likewise. * tests/test-isnanl.h (main): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
* Detect pseudo-denormals on x86 even when cross-compiling.Eric Blake2007-12-111-1/+13
| | | | | | | | * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION && USE_LONG_DOUBLE && x86]: Add one more check to filter out invalid bit patterns that happen to satisfy ==. Signed-off-by: Eric Blake <ebb9@byu.net>
* Change copyright notice from GPLv2+ to GPLv3+.Bruno Haible2007-10-071-6/+5
|
* Recognize non-IEEE numbers on i386, x86_64, ia64.Bruno Haible2007-06-061-3/+36
|
* Work around bugs in the system's isnanf on IRIX and Solaris.Bruno Haible2007-05-191-2/+3
|
* New module 'isnanf-nolibm'.Bruno Haible2007-04-061-1/+13
|
* Work around DEC C 6.4 compiler bug.Bruno Haible2007-03-251-2/+5
|
* Correct bitwise comparison of 'long double' numbers.Bruno Haible2007-03-251-2/+6
|
* Work around bug regarding initializers in SunPRO C and Compaq C compilers.Bruno Haible2007-03-111-11/+22
|
* Merge isnan and isnanl into a single source file.Bruno Haible2007-02-251-13/+36
|
* New module 'isnan-nolibm'.Bruno Haible2007-02-241-0/+61