aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorFelix Willgerodt <felix.willgerodt@intel.com>2020-09-10 14:29:51 +0200
committerKevin Buettner <kevinb@redhat.com>2020-09-11 11:32:00 -0700
commitdae7c5a44424e8a2ff136085b07a852fc578e24e (patch)
treec78a2d5366982e6b8c13a6d79ff1baaf3b0ddf71 /libiberty
parentedc7a80a9c04667dfa74f90f74bd39827bc372b7 (diff)
downloadgdb-dae7c5a44424e8a2ff136085b07a852fc578e24e.zip
gdb-dae7c5a44424e8a2ff136085b07a852fc578e24e.tar.gz
gdb-dae7c5a44424e8a2ff136085b07a852fc578e24e.tar.bz2
Sync include, libiberty with GCC.
include: 2020-09-10 Felix Willgerodt <felix.willgerodt@intel.com> Sync with GCC 2020-08-17 Felix Willgerodt <felix.willgerodt@intel.com> * floatformat.h (floatformat_bfloat16_big): New. (floatformat_bfloat16_little): New. libiberty: 2020-09-10 Felix Willgerodt <felix.willgerodt@intel.com> Sync with GCC 2020-08-17 Felix Willgerodt <felix.willgerodt@intel.com> * floatformat.c (floatformat_bfloat16_big): New. (floatformat_bfloat16_little): New.
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog8
-rw-r--r--libiberty/floatformat.c19
2 files changed, 26 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 6b46642..e6280d5 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,11 @@
+2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
+
+ Sync with GCC
+ 2020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
+
+ * floatformat.c (floatformat_bfloat16_big): New.
+ (floatformat_bfloat16_little): New.
+
2020-09-08 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index 2fd5e68..6b9b032 100644
--- a/libiberty/floatformat.c
+++ b/libiberty/floatformat.c
@@ -389,7 +389,24 @@ const struct floatformat floatformat_ibm_long_double_little =
floatformat_ibm_long_double_is_valid,
&floatformat_ieee_double_little
};
-
+
+const struct floatformat floatformat_bfloat16_big =
+{
+ floatformat_big, 16, 0, 1, 8, 127, 255, 9, 7,
+ floatformat_intbit_no,
+ "floatformat_bfloat16_big",
+ floatformat_always_valid,
+ NULL
+};
+
+const struct floatformat floatformat_bfloat16_little =
+{
+ floatformat_little, 16, 0, 1, 8, 127, 255, 9, 7,
+ floatformat_intbit_no,
+ "floatformat_bfloat16_little",
+ floatformat_always_valid,
+ NULL
+};
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))