summaryrefslogtreecommitdiffstats
path: root/gcc/real.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-17 21:44:56 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-17 21:44:56 +0000
commiteda58c9c761ff7ba6954d8a01f1841d73c911aaa (patch)
tree3c37cb0d09c23e15af5409929a2a99a2ec6284e1 /gcc/real.h
parent5baca78d666cabc255bd9f94912c1d80f9bad8a5 (diff)
downloadppe42-gcc-eda58c9c761ff7ba6954d8a01f1841d73c911aaa.tar.gz
ppe42-gcc-eda58c9c761ff7ba6954d8a01f1841d73c911aaa.zip
* real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35105 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/real.h b/gcc/real.h
index ccd0541a1fa..14fd9235c74 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -207,11 +207,11 @@ extern REAL_VALUE_TYPE real_value_truncate PARAMS ((enum machine_mode,
ereal_from_uint (&d, lo, hi, mode)
/* IN is a REAL_VALUE_TYPE. OUT is an array of longs. */
-#if MAX_LONG_DOUBLE_TYPE_SIZE == 96
-#define REAL_VALUE_TO_TARGET_LONG_DOUBLE(IN, OUT) (etarldouble ((IN), (OUT)))
-#else
-#define REAL_VALUE_TO_TARGET_LONG_DOUBLE(IN, OUT) (etartdouble ((IN), (OUT)))
-#endif
+#define REAL_VALUE_TO_TARGET_LONG_DOUBLE(IN, OUT) \
+ (LONG_DOUBLE_TYPE_SIZE == 64 ? etardouble ((IN), (OUT)) \
+ : LONG_DOUBLE_TYPE_SIZE == 96 ? etarldouble ((IN), (OUT)) \
+ : LONG_DOUBLE_TYPE_SIZE == 128 ? etartdouble ((IN), (OUT)) \
+ : abort())
#define REAL_VALUE_TO_TARGET_DOUBLE(IN, OUT) (etardouble ((IN), (OUT)))
/* IN is a REAL_VALUE_TYPE. OUT is a long. */
OpenPOWER on IntegriCloud