diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2006-02-14 00:22:04 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2006-02-14 00:22:04 +0000 |
commit | 0fe4610e618b184172ecaa49fb4729e7c349025c (patch) | |
tree | 3084ef8a5eb9392654a65bb3cf9a290cb6e5a61c /gcc | |
parent | 78492e61f005fa84a53d1632b1a6fb219c013df9 (diff) | |
download | gcc-0fe4610e618b184172ecaa49fb4729e7c349025c.zip gcc-0fe4610e618b184172ecaa49fb4729e7c349025c.tar.gz gcc-0fe4610e618b184172ecaa49fb4729e7c349025c.tar.bz2 |
quadlib.c: Use defines instead of enum qfcmp_magic.
* pa/quadlib.c: Use defines instead of enum qfcmp_magic.
From-SVN: r110947
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/pa/quadlib.c | 26 |
2 files changed, 19 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a1a30e3..53af55e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-02-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * pa/quadlib.c: Use defines instead of enum qfcmp_magic. + 2006-02-13 Zdenek Dvorak <dvorakz@suse.cz> PR rtl-optimization/26235 diff --git a/gcc/config/pa/quadlib.c b/gcc/config/pa/quadlib.c index bce99d2..1e66021 100644 --- a/gcc/config/pa/quadlib.c +++ b/gcc/config/pa/quadlib.c @@ -1,5 +1,5 @@ /* Subroutines for long double support. - Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. @@ -27,16 +27,20 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -/* HPUX TFmode compare requires a library call to _U_Qfcmp, which takes a - magic number as its third argument, that indicates what to do. - The return value is an integer to be compared against zero. */ -enum qfcmp_magic { - QCMP_INV = 1, /* Raise FP_INVALID on SNaN as a side effect. */ - QCMP_UNORD = 2, - QCMP_EQ = 4, - QCMP_LT = 8, - QCMP_GT = 16 -} magic; +/* HPUX TFmode compare requires a library call to _U_Qfcmp. It takes + a magic number as its third argument which indicates what to do. + The return value is an integer to be compared against zero. The + comparison conditions are the same as those listed in Table 8-12 + of the PA-RISC 2.0 Architecture book for the fcmp instruction. */ + +/* Raise FP_INVALID on SNaN as a side effect. */ +#define QCMP_INV 1 + +/* Comparison relations. */ +#define QCMP_UNORD 2 +#define QCMP_EQ 4 +#define QCMP_LT 8 +#define QCMP_GT 16 int _U_Qfcmp (long double a, long double b, int); long _U_Qfcnvfxt_quad_to_sgl (long double); |