Glibc uses host compiler floating-point types for packing.
We need to use softfloat.h types.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
fpu/double.h | 6 ++----
fpu/half.h | 4 +---
fpu/quad.h | 6 ++----
fpu/single.h | 4 +---
4 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/fpu/double.h b/fpu/double.h
index f6c83d7253..6f8fe49a7d 100644
--- a/fpu/double.h
+++ b/fpu/double.h
@@ -69,13 +69,11 @@
#define _FP_HIGHBIT_DW_D \
((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_D - 1) % _FP_W_TYPE_SIZE)
-typedef float DFtype __attribute__ ((mode (DF)));
-
#if _FP_W_TYPE_SIZE < 64
union _FP_UNION_D
{
- DFtype flt;
+ float64 flt;
struct _FP_STRUCT_LAYOUT
{
# if __BYTE_ORDER == __BIG_ENDIAN
@@ -198,7 +196,7 @@ union _FP_UNION_D
union _FP_UNION_D
{
- DFtype flt;
+ float64 flt;
struct _FP_STRUCT_LAYOUT
{
# if __BYTE_ORDER == __BIG_ENDIAN
diff --git a/fpu/half.h b/fpu/half.h
index ea28db6c18..75a3168a75 100644
--- a/fpu/half.h
+++ b/fpu/half.h
@@ -59,11 +59,9 @@
/* The implementation of _FP_MUL_MEAT_H and _FP_DIV_MEAT_H should be
chosen by the target machine. */
-typedef float HFtype __attribute__ ((mode (HF)));
-
union _FP_UNION_H
{
- HFtype flt;
+ float16 flt;
struct _FP_STRUCT_LAYOUT
{
#if __BYTE_ORDER == __BIG_ENDIAN
diff --git a/fpu/quad.h b/fpu/quad.h
index 71621f01bf..24a3245fb7 100644
--- a/fpu/quad.h
+++ b/fpu/quad.h
@@ -69,13 +69,11 @@
#define _FP_HIGHBIT_DW_Q \
((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_Q - 1) % _FP_W_TYPE_SIZE)
-typedef float TFtype __attribute__ ((mode (TF)));
-
#if _FP_W_TYPE_SIZE < 64
union _FP_UNION_Q
{
- TFtype flt;
+ float128 flt;
struct _FP_STRUCT_LAYOUT
{
# if __BYTE_ORDER == __BIG_ENDIAN
@@ -202,7 +200,7 @@ union _FP_UNION_Q
#else /* not _FP_W_TYPE_SIZE < 64 */
union _FP_UNION_Q
{
- TFtype flt /* __attribute__ ((mode (TF))) */ ;
+ float128 flt;
struct _FP_STRUCT_LAYOUT
{
_FP_W_TYPE a, b;
diff --git a/fpu/single.h b/fpu/single.h
index 2918f78d97..91252f82ff 100644
--- a/fpu/single.h
+++ b/fpu/single.h
@@ -66,11 +66,9 @@
/* The implementation of _FP_MUL_MEAT_S and _FP_DIV_MEAT_S should be
chosen by the target machine. */
-typedef float SFtype __attribute__ ((mode (SF)));
-
union _FP_UNION_S
{
- SFtype flt;
+ float32 flt;
struct _FP_STRUCT_LAYOUT
{
#if __BYTE_ORDER == __BIG_ENDIAN
--
2.14.3