summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-23 11:57:29 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-23 11:57:29 +0000
commit749feb5ea572d9d47c689cd66390ab4350732581 (patch)
tree50c5de03fbc7ab65b2dc378b52128fa7451c08a6 /gcc/real.h
parent31adbf104344b8715f3355a8a8c0293774704fbb (diff)
downloadgcc-749feb5ea572d9d47c689cd66390ab4350732581.tar.gz
* real.h (N): Special case 128 bit doubles.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/real.h b/gcc/real.h
index d3cf780ef33..5683bbca4f1 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -77,7 +77,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* REAL_VALUE_TYPE is an array of the minimum number of HOST_WIDE_INTs
required to hold MAX_LONG_DOUBLE_TYPE_SIZE bits. */
+#if MAX_LONG_DOUBLE_TYPE_SIZE == 128
+/* For 128 bit reals, we calculate internally with extra precision. */
+#define N (160 / BITS_PER_UNIT)
+#else
#define N (MAX_LONG_DOUBLE_TYPE_SIZE / BITS_PER_UNIT)
+#endif
#define S sizeof (HOST_WIDE_INT)
typedef struct {
HOST_WIDE_INT r[N/S + (N%S ? 1 : 0)]; /* round up */