floatformat.c: Include "config.h" and <string.h> if available.
authorIan Lance Taylor <ian@wasabisystems.com>
Wed, 3 Dec 2003 18:36:50 +0000 (18:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 3 Dec 2003 18:36:50 +0000 (18:36 +0000)
commitbee6ab3e7241334f1a3550c4e0ac9fe8be715a6b
tree8f6c7e7a2c51b2e3cd76478d7092e59558dfd1fa
parent34cf946f15680f2f9b7f8ef5102aae19f35a8799
floatformat.c: Include "config.h" and <string.h> if available.

* floatformat.c: Include "config.h" and <string.h> if available.
(INFINITY, NAN): Define if not defined by <math.h>.
(floatformat_to_double): Handle NaN, infinity, and denormalized
numbers.
(floatformat_from_double): Likewise.
(ieee_test): In debugging code, use little endian rather than big
endian.  Correct tests to handle NaN and to check correct sign of
zero.  Omit m68k extended test.
(main): Add more debugging cases.

From-SVN: r74237
libiberty/ChangeLog
libiberty/floatformat.c