diff options
author | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-02 09:13:33 +0000 |
---|---|---|
committer | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-02 09:13:33 +0000 |
commit | b66a475fd1bebf5271ddbedb541c63aa4cc0007c (patch) | |
tree | 9a4a2e64f70be27dbc429486a06e568c4dfbf55e /gcc/real.c | |
parent | b2b188b5ec7ec58052788e7c81cee835e589e56d (diff) | |
download | gcc-b66a475fd1bebf5271ddbedb541c63aa4cc0007c.tar.gz |
* real.c (decode_ieee_single): Fix decoding of SNaN bit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c index 74f430c29ae..c79dd288b62 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -2705,7 +2705,8 @@ decode_ieee_single (fmt, r, buf) { r->class = rvc_nan; r->sign = sign; - r->signalling = ((image >> 22) & 1) ^ fmt->qnan_msb_set; + r->signalling = (((image >> (HOST_BITS_PER_LONG - 2)) & 1) + ^ fmt->qnan_msb_set); r->sig[SIGSZ-1] = image; } else |