summaryrefslogtreecommitdiff
path: root/libiberty/floatformat.c
diff options
context:
space:
mode:
authorKen Werner <ken.werner@de.ibm.com>2010-07-06 13:00:59 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2010-07-06 13:00:59 +0000
commitd414dde979f412075132fae7d1c4a242850db642 (patch)
tree4e1dcb2d9baf3cf0daf694877c633e172acdfbe7 /libiberty/floatformat.c
parent6e4da08400087856425b00d401d0232cbe1bb729 (diff)
downloadgcc-d414dde979f412075132fae7d1c4a242850db642.tar.gz
floatformat.h (floatformat_ieee_half_big): Add declaration.
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. From-SVN: r161867
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r--libiberty/floatformat.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index cbf13ea3406..4819507cbdd 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,