OSDN Git Service

* calls.c (expand_call, emit_library_call_value_1), collect2.c
[pf3gnuchains/gcc-fork.git] / gcc / real.h
1 /* Definitions of floating-point access for GNU compiler.
2    Copyright (C) 1989, 1991, 1994, 1996, 1997, 1998,
3    1999, 2000 Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 #ifndef REAL_H_INCLUDED
23 #define REAL_H_INCLUDED
24
25 /* Define codes for all the float formats that we know of.  */
26 #define UNKNOWN_FLOAT_FORMAT 0
27 #define IEEE_FLOAT_FORMAT 1
28 #define VAX_FLOAT_FORMAT 2
29 #define IBM_FLOAT_FORMAT 3
30 #define C4X_FLOAT_FORMAT 4
31
32 /* Default to IEEE float if not specified.  Nearly all machines use it.  */
33
34 #ifndef TARGET_FLOAT_FORMAT
35 #define TARGET_FLOAT_FORMAT     IEEE_FLOAT_FORMAT
36 #endif
37
38 #ifndef HOST_FLOAT_FORMAT
39 #define HOST_FLOAT_FORMAT       IEEE_FLOAT_FORMAT
40 #endif
41
42 #if TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT
43 #define REAL_INFINITY
44 #endif
45
46 /* If FLOAT_WORDS_BIG_ENDIAN and HOST_FLOAT_WORDS_BIG_ENDIAN are not defined
47    in the header files, then this implies the word-endianness is the same as
48    for integers.  */
49
50 /* This is defined 0 or 1, like WORDS_BIG_ENDIAN.  */
51 #ifndef FLOAT_WORDS_BIG_ENDIAN
52 #define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
53 #endif
54
55 /* This is defined 0 or 1, unlike HOST_WORDS_BIG_ENDIAN.  */
56 #ifndef HOST_FLOAT_WORDS_BIG_ENDIAN
57 #ifdef HOST_WORDS_BIG_ENDIAN
58 #define HOST_FLOAT_WORDS_BIG_ENDIAN 1
59 #else
60 #define HOST_FLOAT_WORDS_BIG_ENDIAN 0
61 #endif
62 #endif
63
64 /* Defining REAL_ARITHMETIC invokes a floating point emulator
65    that can produce a target machine format differing by more
66    than just endian-ness from the host's format.  The emulator
67    is also used to support extended real XFmode.  */
68 #ifndef LONG_DOUBLE_TYPE_SIZE
69 #define LONG_DOUBLE_TYPE_SIZE 64
70 #endif
71 /* MAX_LONG_DOUBLE_TYPE_SIZE is a constant tested by #if.
72    LONG_DOUBLE_TYPE_SIZE can vary at compiler run time.
73    So long as macros like REAL_VALUE_TO_TARGET_LONG_DOUBLE cannot
74    vary too, however, then XFmode and TFmode long double
75    cannot both be supported at the same time.  */
76 #ifndef MAX_LONG_DOUBLE_TYPE_SIZE
77 #define MAX_LONG_DOUBLE_TYPE_SIZE LONG_DOUBLE_TYPE_SIZE
78 #endif
79 #if (MAX_LONG_DOUBLE_TYPE_SIZE == 96) || (MAX_LONG_DOUBLE_TYPE_SIZE == 128)
80 #ifndef REAL_ARITHMETIC
81 #define REAL_ARITHMETIC
82 #endif
83 #endif
84 #ifdef REAL_ARITHMETIC
85 /* **** Start of software floating point emulator interface macros **** */
86
87 /* Support 80-bit extended real XFmode if LONG_DOUBLE_TYPE_SIZE
88    has been defined to be 96 in the tm.h machine file. */
89 #if (MAX_LONG_DOUBLE_TYPE_SIZE == 96)
90 #define REAL_IS_NOT_DOUBLE
91 #define REAL_ARITHMETIC
92 typedef struct {
93   HOST_WIDE_INT r[(11 + sizeof (HOST_WIDE_INT))/(sizeof (HOST_WIDE_INT))];
94 } realvaluetype;
95 #define REAL_VALUE_TYPE realvaluetype
96
97 #else /* no XFmode support */
98
99 #if (MAX_LONG_DOUBLE_TYPE_SIZE == 128)
100
101 #define REAL_IS_NOT_DOUBLE
102 #define REAL_ARITHMETIC
103 typedef struct {
104   HOST_WIDE_INT r[(19 + sizeof (HOST_WIDE_INT))/(sizeof (HOST_WIDE_INT))];
105 } realvaluetype;
106 #define REAL_VALUE_TYPE realvaluetype
107
108 #else /* not TFmode */
109
110 #if HOST_FLOAT_FORMAT != TARGET_FLOAT_FORMAT
111 /* If no XFmode support, then a REAL_VALUE_TYPE is 64 bits wide
112    but it is not necessarily a host machine double. */
113 #define REAL_IS_NOT_DOUBLE
114 typedef struct {
115   HOST_WIDE_INT r[(7 + sizeof (HOST_WIDE_INT))/(sizeof (HOST_WIDE_INT))];
116 } realvaluetype;
117 #define REAL_VALUE_TYPE realvaluetype
118 #else
119 /* If host and target formats are compatible, then a REAL_VALUE_TYPE
120    is actually a host machine double. */
121 #define REAL_VALUE_TYPE double
122 #endif
123
124 #endif /* no TFmode support */
125 #endif /* no XFmode support */
126
127 extern unsigned int significand_size    PARAMS ((enum machine_mode));
128
129 /* If emulation has been enabled by defining REAL_ARITHMETIC or by
130    setting LONG_DOUBLE_TYPE_SIZE to 96 or 128, then define macros so that
131    they invoke emulator functions. This will succeed only if the machine
132    files have been updated to use these macros in place of any
133    references to host machine `double' or `float' types.  */
134 #ifdef REAL_ARITHMETIC
135 #undef REAL_ARITHMETIC
136 #define REAL_ARITHMETIC(value, code, d1, d2) \
137   earith (&(value), (code), &(d1), &(d2))
138
139 /* Declare functions in real.c. */
140 extern void earith              PARAMS ((REAL_VALUE_TYPE *, int,
141                                        REAL_VALUE_TYPE *, REAL_VALUE_TYPE *));
142 extern REAL_VALUE_TYPE etrunci  PARAMS ((REAL_VALUE_TYPE));
143 extern REAL_VALUE_TYPE etruncui PARAMS ((REAL_VALUE_TYPE));
144 extern REAL_VALUE_TYPE ereal_atof PARAMS ((const char *, enum machine_mode));
145 extern REAL_VALUE_TYPE ereal_negate PARAMS ((REAL_VALUE_TYPE));
146 extern HOST_WIDE_INT efixi      PARAMS ((REAL_VALUE_TYPE));
147 extern unsigned HOST_WIDE_INT efixui PARAMS ((REAL_VALUE_TYPE));
148 extern void ereal_from_int      PARAMS ((REAL_VALUE_TYPE *,
149                                        HOST_WIDE_INT, HOST_WIDE_INT,
150                                        enum machine_mode));
151 extern void ereal_from_uint     PARAMS ((REAL_VALUE_TYPE *,
152                                        unsigned HOST_WIDE_INT,
153                                        unsigned HOST_WIDE_INT,
154                                        enum machine_mode));
155 extern void ereal_to_int        PARAMS ((HOST_WIDE_INT *, HOST_WIDE_INT *,
156                                        REAL_VALUE_TYPE));
157 extern REAL_VALUE_TYPE ereal_ldexp PARAMS ((REAL_VALUE_TYPE, int));
158
159 extern void etartdouble         PARAMS ((REAL_VALUE_TYPE, long *));
160 extern void etarldouble         PARAMS ((REAL_VALUE_TYPE, long *));
161 extern void etardouble          PARAMS ((REAL_VALUE_TYPE, long *));
162 extern long etarsingle          PARAMS ((REAL_VALUE_TYPE));
163 extern void ereal_to_decimal    PARAMS ((REAL_VALUE_TYPE, char *));
164 extern int ereal_cmp            PARAMS ((REAL_VALUE_TYPE, REAL_VALUE_TYPE));
165 extern int ereal_isneg          PARAMS ((REAL_VALUE_TYPE));
166 extern REAL_VALUE_TYPE ereal_unto_float PARAMS ((long));
167 extern REAL_VALUE_TYPE ereal_unto_double PARAMS ((long *));
168 extern REAL_VALUE_TYPE ereal_from_float PARAMS ((HOST_WIDE_INT));
169 extern REAL_VALUE_TYPE ereal_from_double PARAMS ((HOST_WIDE_INT *));
170
171 #define REAL_VALUES_EQUAL(x, y) (ereal_cmp ((x), (y)) == 0)
172 /* true if x < y : */
173 #define REAL_VALUES_LESS(x, y) (ereal_cmp ((x), (y)) == -1)
174 #define REAL_VALUE_LDEXP(x, n) ereal_ldexp (x, n)
175
176 /* These return REAL_VALUE_TYPE: */
177 #define REAL_VALUE_RNDZINT(x) (etrunci (x))
178 #define REAL_VALUE_UNSIGNED_RNDZINT(x) (etruncui (x))
179 extern REAL_VALUE_TYPE real_value_truncate      PARAMS ((enum machine_mode,
180                                                         REAL_VALUE_TYPE));
181 #define REAL_VALUE_TRUNCATE(mode, x)  real_value_truncate (mode, x)
182
183 /* These return HOST_WIDE_INT: */
184 /* Convert a floating-point value to integer, rounding toward zero.  */
185 #define REAL_VALUE_FIX(x) (efixi (x))
186 /* Convert a floating-point value to unsigned integer, rounding
187    toward zero. */
188 #define REAL_VALUE_UNSIGNED_FIX(x) (efixui (x))
189
190 /* Convert ASCII string S to floating point in mode M.
191    Decimal input uses ATOF.  Hexadecimal uses HTOF.  */
192 #define REAL_VALUE_ATOF(s,m) ereal_atof(s,m)
193 #define REAL_VALUE_HTOF(s,m) ereal_atof(s,m)
194
195 #define REAL_VALUE_NEGATE ereal_negate
196
197 #define REAL_VALUE_MINUS_ZERO(x) \
198  ((ereal_cmp (x, dconst0) == 0) && (ereal_isneg (x) != 0 ))
199
200 #define REAL_VALUE_TO_INT ereal_to_int
201
202 /* Here the cast to HOST_WIDE_INT sign-extends arguments such as ~0.  */
203 #define REAL_VALUE_FROM_INT(d, lo, hi, mode) \
204   ereal_from_int (&d, (HOST_WIDE_INT) (lo), (HOST_WIDE_INT) (hi), mode)
205
206 #define REAL_VALUE_FROM_UNSIGNED_INT(d, lo, hi, mode) \
207   ereal_from_uint (&d, lo, hi, mode)
208
209 /* IN is a REAL_VALUE_TYPE.  OUT is an array of longs. */
210 #if defined(INTEL_EXTENDED_IEEE_FORMAT) && MAX_LONG_DOUBLE_TYPE_SIZE == 128
211 #define REAL_VALUE_TO_TARGET_LONG_DOUBLE(IN, OUT) (etarldouble ((IN), (OUT)))
212 #else
213 #define REAL_VALUE_TO_TARGET_LONG_DOUBLE(IN, OUT)               \
214    (LONG_DOUBLE_TYPE_SIZE == 64 ? etardouble ((IN), (OUT))      \
215     : LONG_DOUBLE_TYPE_SIZE == 96 ? etarldouble ((IN), (OUT))   \
216     : LONG_DOUBLE_TYPE_SIZE == 128 ? etartdouble ((IN), (OUT))  \
217     : abort())
218 #endif
219 #define REAL_VALUE_TO_TARGET_DOUBLE(IN, OUT) (etardouble ((IN), (OUT)))
220
221 /* IN is a REAL_VALUE_TYPE.  OUT is a long. */
222 #define REAL_VALUE_TO_TARGET_SINGLE(IN, OUT) ((OUT) = etarsingle ((IN)))
223
224 /* Inverse of REAL_VALUE_TO_TARGET_DOUBLE. */
225 #define REAL_VALUE_UNTO_TARGET_DOUBLE(d)  (ereal_unto_double (d))
226
227 /* Inverse of REAL_VALUE_TO_TARGET_SINGLE. */
228 #define REAL_VALUE_UNTO_TARGET_SINGLE(f)  (ereal_unto_float (f))
229
230 /* d is an array of HOST_WIDE_INT that holds a double precision
231    value in the target computer's floating point format. */
232 #define REAL_VALUE_FROM_TARGET_DOUBLE(d)  (ereal_from_double (d))
233
234 /* f is a HOST_WIDE_INT containing a single precision target float value. */
235 #define REAL_VALUE_FROM_TARGET_SINGLE(f)  (ereal_from_float (f))
236
237 /* Conversions to decimal ASCII string.  */
238 #define REAL_VALUE_TO_DECIMAL(r, fmt, s) (ereal_to_decimal (r, s))
239
240 #endif /* REAL_ARITHMETIC defined */
241
242 /* **** End of software floating point emulator interface macros **** */
243 #else /* No XFmode or TFmode and REAL_ARITHMETIC not defined */
244
245 /* old interface */
246 #ifdef REAL_ARITHMETIC
247 /* Defining REAL_IS_NOT_DOUBLE breaks certain initializations
248    when REAL_ARITHMETIC etc. are not defined.  */
249
250 /* Now see if the host and target machines use the same format. 
251    If not, define REAL_IS_NOT_DOUBLE (even if we end up representing
252    reals as doubles because we have no better way in this cross compiler.)
253    This turns off various optimizations that can happen when we know the
254    compiler's float format matches the target's float format.
255    */
256 #if HOST_FLOAT_FORMAT != TARGET_FLOAT_FORMAT
257 #define REAL_IS_NOT_DOUBLE
258 #ifndef REAL_VALUE_TYPE
259 typedef struct {
260     HOST_WIDE_INT r[sizeof (double)/sizeof (HOST_WIDE_INT)];
261   } realvaluetype;
262 #define REAL_VALUE_TYPE realvaluetype
263 #endif /* no REAL_VALUE_TYPE */
264 #endif /* formats differ */
265 #endif /* 0 */
266
267 #endif /* emulator not used */
268
269 /* If we are not cross-compiling, use a `double' to represent the
270    floating-point value.  Otherwise, use some other type
271    (probably a struct containing an array of longs).  */
272 #ifndef REAL_VALUE_TYPE
273 #define REAL_VALUE_TYPE double
274 #else
275 #define REAL_IS_NOT_DOUBLE
276 #endif
277
278 #if HOST_FLOAT_FORMAT == TARGET_FLOAT_FORMAT
279
280 /* Convert a type `double' value in host format first to a type `float'
281    value in host format and then to a single type `long' value which
282    is the bitwise equivalent of the `float' value.  */
283 #ifndef REAL_VALUE_TO_TARGET_SINGLE
284 #define REAL_VALUE_TO_TARGET_SINGLE(IN, OUT)            \
285 do {                                                    \
286   union {                                               \
287     float f;                                            \
288     HOST_WIDE_INT l;                                    \
289   } u;                                                  \
290   if (sizeof(HOST_WIDE_INT) < sizeof(float))            \
291     abort();                                            \
292   u.l = 0;                                              \
293   u.f = (IN);                                           \
294   (OUT) = u.l;                                          \
295 } while (0)
296 #endif
297
298 /* Convert a type `double' value in host format to a pair of type `long'
299    values which is its bitwise equivalent, but put the two words into
300    proper word order for the target.  */
301 #ifndef REAL_VALUE_TO_TARGET_DOUBLE
302 #define REAL_VALUE_TO_TARGET_DOUBLE(IN, OUT)                            \
303 do {                                                                    \
304   union {                                                               \
305     REAL_VALUE_TYPE f;                                                  \
306     HOST_WIDE_INT l[2];                                                 \
307   } u;                                                                  \
308   if (sizeof(HOST_WIDE_INT) * 2 < sizeof(REAL_VALUE_TYPE))              \
309     abort();                                                            \
310   u.l[0] = u.l[1] = 0;                                                  \
311   u.f = (IN);                                                           \
312   if (HOST_FLOAT_WORDS_BIG_ENDIAN == FLOAT_WORDS_BIG_ENDIAN)            \
313     (OUT)[0] = u.l[0], (OUT)[1] = u.l[1];                               \
314   else                                                                  \
315     (OUT)[1] = u.l[0], (OUT)[0] = u.l[1];                               \
316 } while (0)
317 #endif
318 #endif /* HOST_FLOAT_FORMAT == TARGET_FLOAT_FORMAT */
319
320 /* In this configuration, double and long double are the same. */
321 #ifndef REAL_VALUE_TO_TARGET_LONG_DOUBLE
322 #define REAL_VALUE_TO_TARGET_LONG_DOUBLE(a, b) REAL_VALUE_TO_TARGET_DOUBLE (a, b)
323 #endif
324
325 /* Compare two floating-point objects for bitwise identity.
326    This is not the same as comparing for equality on IEEE hosts:
327    -0.0 equals 0.0 but they are not identical, and conversely
328    two NaNs might be identical but they cannot be equal.  */
329 #define REAL_VALUES_IDENTICAL(x, y) \
330   (!memcmp ((char *) &(x), (char *) &(y), sizeof (REAL_VALUE_TYPE)))
331
332 /* Compare two floating-point values for equality.  */
333 #ifndef REAL_VALUES_EQUAL
334 #define REAL_VALUES_EQUAL(x, y) ((x) == (y))
335 #endif
336
337 /* Compare two floating-point values for less than.  */
338 #ifndef REAL_VALUES_LESS
339 #define REAL_VALUES_LESS(x, y) ((x) < (y))
340 #endif
341
342 /* Truncate toward zero to an integer floating-point value.  */
343 #ifndef REAL_VALUE_RNDZINT
344 #define REAL_VALUE_RNDZINT(x) ((double) ((int) (x)))
345 #endif
346
347 /* Truncate toward zero to an unsigned integer floating-point value.  */
348 #ifndef REAL_VALUE_UNSIGNED_RNDZINT
349 #define REAL_VALUE_UNSIGNED_RNDZINT(x) ((double) ((unsigned int) (x)))
350 #endif
351
352 /* Convert a floating-point value to integer, rounding toward zero.  */
353 #ifndef REAL_VALUE_FIX
354 #define REAL_VALUE_FIX(x) ((int) (x))
355 #endif
356
357 /* Convert a floating-point value to unsigned integer, rounding
358    toward zero. */
359 #ifndef REAL_VALUE_UNSIGNED_FIX
360 #define REAL_VALUE_UNSIGNED_FIX(x) ((unsigned int) (x))
361 #endif
362
363 /* Scale X by Y powers of 2.  */
364 #ifndef REAL_VALUE_LDEXP
365 #define REAL_VALUE_LDEXP(x, y) ldexp (x, y)
366 extern double ldexp PARAMS ((double, int));
367 #endif
368
369 /* Convert the string X to a floating-point value.  */
370 #ifndef REAL_VALUE_ATOF
371 #if 1
372 /* Use real.c to convert decimal numbers to binary, ... */
373 extern REAL_VALUE_TYPE ereal_atof PARAMS ((const char *, enum machine_mode));
374 #define REAL_VALUE_ATOF(x, s) ereal_atof (x, s)
375 /* Could use ereal_atof here for hexadecimal floats too, but real_hex_to_f
376    is OK and it uses faster native fp arithmetic.  */
377 /* #define REAL_VALUE_HTOF(x, s) ereal_atof (x, s) */
378 #else
379 /* ... or, if you like the host computer's atof, go ahead and use it: */
380 #define REAL_VALUE_ATOF(x, s) atof (x)
381 #if defined (MIPSEL) || defined (MIPSEB)
382 /* MIPS compiler can't handle parens around the function name.
383    This problem *does not* appear to be connected with any
384    macro definition for atof.  It does not seem there is one.  */
385 extern double atof ();
386 #else
387 extern double (atof) ();
388 #endif
389 #endif
390 #endif
391
392 /* Hexadecimal floating constant input for use with host computer's
393    fp arithmetic.  */
394 #ifndef REAL_VALUE_HTOF
395 extern REAL_VALUE_TYPE real_hex_to_f PARAMS ((char *, enum machine_mode));
396 #define REAL_VALUE_HTOF(s,m) real_hex_to_f(s,m)
397 #endif
398
399 /* Negate the floating-point value X.  */
400 #ifndef REAL_VALUE_NEGATE
401 #define REAL_VALUE_NEGATE(x) (- (x))
402 #endif
403
404 /* Truncate the floating-point value X to mode MODE.  This is correct only
405    for the most common case where the host and target have objects of the same
406    size and where `float' is SFmode.  */
407
408 /* Don't use REAL_VALUE_TRUNCATE directly--always call real_value_truncate.  */
409 extern REAL_VALUE_TYPE real_value_truncate PARAMS ((enum machine_mode,
410                                                   REAL_VALUE_TYPE));
411
412 #ifndef REAL_VALUE_TRUNCATE
413 #define REAL_VALUE_TRUNCATE(mode, x) \
414  (GET_MODE_BITSIZE (mode) == sizeof (float) * HOST_BITS_PER_CHAR        \
415   ? (float) (x) : (x))
416 #endif
417
418 /* Determine whether a floating-point value X is infinite. */
419 #ifndef REAL_VALUE_ISINF
420 #define REAL_VALUE_ISINF(x) (target_isinf (x))
421 #endif
422
423 /* Determine whether a floating-point value X is a NaN. */
424 #ifndef REAL_VALUE_ISNAN
425 #define REAL_VALUE_ISNAN(x) (target_isnan (x))
426 #endif
427
428 /* Determine whether a floating-point value X is negative. */
429 #ifndef REAL_VALUE_NEGATIVE
430 #define REAL_VALUE_NEGATIVE(x) (target_negative (x))
431 #endif
432
433 extern int target_isnan                 PARAMS ((REAL_VALUE_TYPE));
434 extern int target_isinf                 PARAMS ((REAL_VALUE_TYPE));
435 extern int target_negative              PARAMS ((REAL_VALUE_TYPE));
436
437 /* Determine whether a floating-point value X is minus 0. */
438 #ifndef REAL_VALUE_MINUS_ZERO
439 #define REAL_VALUE_MINUS_ZERO(x) ((x) == 0 && REAL_VALUE_NEGATIVE (x))
440 #endif
441 \f
442 /* Constant real values 0, 1, 2, and -1.  */
443
444 extern REAL_VALUE_TYPE dconst0;
445 extern REAL_VALUE_TYPE dconst1;
446 extern REAL_VALUE_TYPE dconst2;
447 extern REAL_VALUE_TYPE dconstm1;
448
449 /* Union type used for extracting real values from CONST_DOUBLEs
450    or putting them in.  */
451
452 union real_extract 
453 {
454   REAL_VALUE_TYPE d;
455   HOST_WIDE_INT i[sizeof (REAL_VALUE_TYPE) / sizeof (HOST_WIDE_INT)];
456 };
457
458 /* Given a CONST_DOUBLE in FROM, store into TO the value it represents.  */
459 /* Function to return a real value (not a tree node)
460    from a given integer constant.  */
461 union tree_node;
462 REAL_VALUE_TYPE real_value_from_int_cst PARAMS ((union tree_node *,
463                                                 union tree_node *));
464
465 #define REAL_VALUE_FROM_CONST_DOUBLE(to, from)          \
466 do { union real_extract u;                              \
467      bcopy ((char *) &CONST_DOUBLE_LOW ((from)), (char *) &u, sizeof u); \
468      to = u.d; } while (0)
469
470 /* Return a CONST_DOUBLE with value R and mode M.  */
471
472 #define CONST_DOUBLE_FROM_REAL_VALUE(r, m) immed_real_const_1 (r,  m)
473 extern struct rtx_def *immed_real_const_1       PARAMS ((REAL_VALUE_TYPE,
474                                                        enum machine_mode));
475
476
477 /* Convert a floating point value `r', that can be interpreted
478    as a host machine float or double, to a decimal ASCII string `s'
479    using printf format string `fmt'.  */
480 #ifndef REAL_VALUE_TO_DECIMAL
481 #define REAL_VALUE_TO_DECIMAL(r, fmt, s) (sprintf (s, fmt, r))
482 #endif
483
484 /* Replace R by 1/R in the given machine mode, if the result is exact.  */
485 extern int exact_real_inverse   PARAMS ((enum machine_mode, REAL_VALUE_TYPE *));
486 extern int target_isnan         PARAMS ((REAL_VALUE_TYPE));
487 extern int target_isinf         PARAMS ((REAL_VALUE_TYPE));
488 extern int target_negative      PARAMS ((REAL_VALUE_TYPE));
489 extern void debug_real          PARAMS ((REAL_VALUE_TYPE));
490
491 /* In varasm.c */
492 extern void assemble_real               PARAMS ((REAL_VALUE_TYPE,
493                                                enum machine_mode));
494 extern void debug_real                  PARAMS ((REAL_VALUE_TYPE));
495
496 /* In varasm.c */
497 extern void assemble_real               PARAMS ((REAL_VALUE_TYPE,
498                                                enum machine_mode));
499 #endif /* Not REAL_H_INCLUDED */