OSDN Git Service

(REAL_VALUE_FROM_TARGET_SINGLE): New macro.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Jun 1993 00:25:05 +0000 (00:25 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Jun 1993 00:25:05 +0000 (00:25 +0000)
(REAL_VALUE_FROM_TARGET_DOUBLE): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4671 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/real.h

index b946619..4ac1822 100644 (file)
@@ -95,6 +95,7 @@ int ereal_cmp (), eroundi (), ereal_isneg ();
 unsigned int eroundui ();
 REAL_VALUE_TYPE etrunci (), etruncui (), ereal_ldexp (), ereal_atof ();
 REAL_VALUE_TYPE ereal_negate (), ereal_truncate ();
+REAL_VALUE_TYPE ereal_from_float (), ereal_from_double ();
 
 #define REAL_VALUES_EQUAL(x, y) (ereal_cmp ((x), (y)) == 0)
 /* true if x < y : */
@@ -124,9 +125,12 @@ extern REAL_VALUE_TYPE real_value_truncate ();
 /* IN is a REAL_VALUE_TYPE.  OUT is an array of longs. */
 #define REAL_VALUE_TO_TARGET_LONG_DOUBLE(IN, OUT) (etarldouble ((IN), (OUT)))
 #define REAL_VALUE_TO_TARGET_DOUBLE(IN, OUT) (etardouble ((IN), (OUT)))
-
+/* d is an array of longs. */
+#define REAL_VALUE_FROM_TARGET_DOUBLE(d)  (ereal_from_double (d))
 /* IN is a REAL_VALUE_TYPE.  OUT is a long. */
 #define REAL_VALUE_TO_TARGET_SINGLE(IN, OUT) ((OUT) = etarsingle ((IN)))
+/* f is a long. */
+#define REAL_VALUE_FROM_TARGET_SINGLE(f)  (ereal_from_float (f))
 
 /* Conversions to decimal ASCII string.  */
 #define REAL_VALUE_TO_DECIMAL(r, fmt, s) (ereal_to_decimal (r, s))