OSDN Git Service

* doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
authorrearnsha <rearnsha>
Sun, 5 Dec 2004 15:17:32 +0000 (15:17 +0000)
committerrearnsha <rearnsha>
Sun, 5 Dec 2004 15:17:32 +0000 (15:17 +0000)
commitb5d38595faa9a2944794b5f274f1f2e709ceb299
tree96c0df8aee4a277df33a1c953277b7a76696f994
parent4e84dcf62380468ffe477bc40a11003ce30d2503
* doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
(get_field, put_field): Assert that the format is one we can handle.
Simplify logic accordingly.
(floatformat_normalize_byteorder): New function.
(convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
to normalize and select modified byte order. Pass modified byte order
to get_field.
(floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
Likewise.
(convert_doublest_to_floatformat): Select an appropriate intermediate
byte order if necessary.  Always convert to the final format before
returning.
gdb/ChangeLog
gdb/doublest.c