diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-07-06 12:56:24 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-07-06 12:56:24 +0000 |
commit | f9e9243aad66a7923e30c61cd1749623fa568f79 (patch) | |
tree | c7ccf41dd950d38c46f54b59a3641f08c880891e /libiberty | |
parent | 50248c890f1bc82c6e1751bd549da7580c60f098 (diff) | |
download | gdb-f9e9243aad66a7923e30c61cd1749623fa568f79.zip gdb-f9e9243aad66a7923e30c61cd1749623fa568f79.tar.gz gdb-f9e9243aad66a7923e30c61cd1749623fa568f79.tar.bz2 |
include/ChangeLog:
2010-07-06 Ken Werner <ken.werner@de.ibm.com>
* floatformat.h (floatformat_ieee_half_big): Add declaration.
(floatformat_ieee_half_little): Likewise.
libiberty/ChangeLog:
2010-07-06 Ken Werner <ken.werner@de.ibm.com>
* floatformat.c (floatformat_ieee_half_big): New variable.
(floatformat_ieee_half_little): Likewise.
gdb/ChangeLog:
2010-07-06 Ken Werner <ken.werner@de.ibm.com>
* gdbtypes.h (floatformats_ieee_half): Add declaration.
* gdbtypes.c (floatformats_ieee_half): New variable.
* doublest.c (floatformat_from_length): Set format to
gdbarch_half_format if length matches.
* gdbarch.sh (half_bit): New architecture method.
(half_format): Likewise.
* gdbarch.h: Regenerate.
* gdbarch.c: Likewise.
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/floatformat.c | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index a16e393..1b1610b 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2010-07-06 Ken Werner <ken.werner@de.ibm.com> + + * floatformat.c (floatformat_ieee_half_big): New variable. + (floatformat_ieee_half_little): Likewise. + 2010-06-14 Gerald Pfeifer <gerald@pfeifer.com> * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice). diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index cbf13ea..4819507 100644 --- a/libiberty/floatformat.c +++ b/libiberty/floatformat.c @@ -77,7 +77,23 @@ floatformat_always_valid (const struct floatformat *fmt ATTRIBUTE_UNUSED, a system header, what we do if not, etc. */ #define FLOATFORMAT_CHAR_BIT 8 -/* floatformats for IEEE single and double, big and little endian. */ +/* floatformats for IEEE half, single and double, big and little endian. */ +const struct floatformat floatformat_ieee_half_big = +{ + floatformat_big, 16, 0, 1, 5, 15, 31, 6, 10, + floatformat_intbit_no, + "floatformat_ieee_half_big", + floatformat_always_valid, + NULL +}; +const struct floatformat floatformat_ieee_half_little = +{ + floatformat_little, 16, 0, 1, 5, 15, 31, 6, 10, + floatformat_intbit_no, + "floatformat_ieee_half_little", + floatformat_always_valid, + NULL +}; const struct floatformat floatformat_ieee_single_big = { floatformat_big, 32, 0, 1, 8, 127, 255, 9, 23, |