OSDN Git Service

* 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)
commit4bf5ee669ce16dcdbaf4a411f898a1e71343dea6
tree34f5f84e8ce02f20d4bd2a88e6d4362d1491dc76
parent2abdff3b9805c6635972c0aa4e916549903da758
* 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