diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-04 13:57:43 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-04 13:57:43 +0000 |
commit | f42be7b77f17cbe84dfcef2661c4de661077e6ae (patch) | |
tree | a5d2908cb8681f40e4d34802d18042b0ed75fc59 /gcc/real.c | |
parent | b06fb69e428aba764123a8225235090cd099b8c4 (diff) | |
download | gcc-f42be7b77f17cbe84dfcef2661c4de661077e6ae.tar.gz |
(significand_size): Don't test the modes, but their sizes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11415 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/real.c b/gcc/real.c index 082cfd03af1..ec443706aa3 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -1,6 +1,6 @@ /* real.c - implementation of REAL_ARITHMETIC, REAL_VALUE_ATOF, and support for XFmode IEEE extended real floating point arithmetic. - Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc. Contributed by Stephen L. Moshier (moshier@world.std.com). This file is part of GNU CC. @@ -6091,12 +6091,15 @@ significand_size (mode) enum machine_mode mode; { -switch (mode) +/* Don't test the modes, but their sizes, lest this + code won't work for BITS_PER_UNIT != 8 . */ + +switch (GET_MODE_BITSIZE (mode)) { - case SFmode: + case 32: return 24; - case DFmode: + case 64: #if TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT return 53; #else @@ -6111,9 +6114,9 @@ switch (mode) #endif #endif - case XFmode: + case 96: return 64; - case TFmode: + case 128: return 113; default: |