* doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
authorRichard Earnshaw <richard.earnshaw@arm.com>
Sun, 5 Dec 2004 15:17:34 +0000 (15:17 +0000)
committerRichard Earnshaw <richard.earnshaw@arm.com>
Sun, 5 Dec 2004 15:17:34 +0000 (15:17 +0000)
commitfcab3fb53bfaf92360e8fde4fae2fda675c614bd
tree69b784165d9465e80964be7805dfbf7ae4156bdb
parent0e1200e5933a00411a31957a3bf7427c1f0a6035
* 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