summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-06 13:00:59 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-06 13:00:59 +0000
commitb2d1762876ba5bb6106070e8f3cf6440bb43ea0d (patch)
tree4e1dcb2d9baf3cf0daf694877c633e172acdfbe7
parent224d1be8f8f43018b693a591fb2b8ca813aa5f1d (diff)
downloadgcc-b2d1762876ba5bb6106070e8f3cf6440bb43ea0d.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161867 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--include/ChangeLog5
-rw-r--r--include/floatformat.h2
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/floatformat.c18
4 files changed, 29 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index a9fb359cd3d..3fc2fa5e224 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-06 Ken Werner <ken.werner@de.ibm.com>
+
+ * floatformat.h (floatformat_ieee_half_big): Add declaration.
+ (floatformat_ieee_half_little): Likewise.
+
2010-06-21 Rafael Espindola <espindola@google.com>
* plugin-api.h (ld_plugin_set_extra_library_path): New.
diff --git a/include/floatformat.h b/include/floatformat.h
index c5f60a3cd93..0fc8e75dc8b 100644
--- a/include/floatformat.h
+++ b/include/floatformat.h
@@ -96,6 +96,8 @@ struct floatformat
/* floatformats for IEEE single and double, big and little endian. */
+extern const struct floatformat floatformat_ieee_half_big;
+extern const struct floatformat floatformat_ieee_half_little;
extern const struct floatformat floatformat_ieee_single_big;
extern const struct floatformat floatformat_ieee_single_little;
extern const struct floatformat floatformat_ieee_double_big;
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index a16e393d027..1b1610b6929 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 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,