OSDN Git Service

* floatformat.c: Include "config.h" and <string.h> if available.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Dec 2003 18:36:50 +0000 (18:36 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Dec 2003 18:36:50 +0000 (18:36 +0000)
commitfa152dff878071a2ed0a5f3e8173074c205fe840
tree8f6c7e7a2c51b2e3cd76478d7092e59558dfd1fa
parent97edafd1ac79d8ce1b2b1d4aadf23cb614500884
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74237 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/floatformat.c